setDefaultCamera

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.10
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.10

Description

Description:
Sets the position and direction for the camera used after camera is set on no object (log out view when leaving MP game for example)

Syntax

Syntax:
setDefaultCamera [position, direction]
Parameters:
position: PositionASL - position of the camera
direction: Array - format Vector3D - direction of the camera
Return Value:
Nothing

Examples

Example 1:
setDefaultCamera [[5000,5000,200],[1,1,-1]];
Example 2:
Lift camera 100m up above current player position and point downwards: setDefaultCamera [ATLtoASL (player modelToWorld [0,0,100]),[0,0,-1]];

Additional Information

Multiplayer:
-
See also:
camCreatecameraOncameraViewcameraEffectcameraEffectEnableHUDswitchCamerapositionCameraToWorldcameraInterestsetCameraInterestgetEditorCameramapCenterOnCamerapreloadCamerarestartEditorCamera

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section