{"name":"setDefaultCamera","operator":null,"title":"setDefaultCamera","type":"command","url":"https://community.bistudio.com/wiki/setDefaultCamera","revid":377593,"updated":"2026-01-02T06:59:17Z","groups":["Camera Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.10"}],"since":{"game":"arma3","name":"Arma 3","version":"1.10"},"arma3_since":"1.10","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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)","syntaxes":[{"syntax":"setDefaultCamera [position, direction]","since":null,"effect":null,"exec":null,"params":[{"name":"position","type":"PositionASL","optional":false,"default":null,"description":"position of the camera","types":["PositionASL"],"since":null,"text":"position: PositionASL - position of the camera"},{"name":"direction","type":"Vector3D","optional":false,"default":null,"description":"direction of the camera","types":["Vector3D"],"since":null,"text":"direction: Vector3D - direction of the camera"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[position, direction]","types":["Array"]}}],"examples":[{"text":"```sqf\nsetDefaultCamera [[5000, 5000, 200], [1, 1, -1]];\n```","code":["setDefaultCamera [[5000, 5000, 200], [1, 1, -1]];"]},{"text":"Lift camera 100m up above current player position and point downwards:\n\n```sqf\nsetDefaultCamera [ATLToASL (player modelToWorld [0, 0, 100]), [0, 0, -1]];\n```","code":["setDefaultCamera [ATLToASL (player modelToWorld [0, 0, 100]), [0, 0, -1]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["camCreate","cameraOn","cameraView","cameraEffect","cameraEffectEnableHUD","switchCamera","positionCameraToWorld","cameraInterest","setCameraInterest","getEditorCamera","mapCenterOnCamera","preloadCamera","restartEditorCamera"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Camera Control","Introduced with Arma 3 version 1.10","Scripting Commands"]}