Arma 3 Scripting

setDefaultCamera

  • Arma 3 v1.10

Command · Markdown · JSON · original wiki page

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

setDefaultCamera [position, direction]

Parameters:

Returns: 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]];

See also

camCreate · cameraOn · cameraView · cameraEffect · cameraEffectEnableHUD · switchCamera · positionCameraToWorld · cameraInterest · setCameraInterest · getEditorCamera · mapCenterOnCamera · preloadCamera · restartEditorCamera