setDefaultCamera: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
m (setDefaultCamera) |
||
Line 39: | Line 39: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Camera Control|setDefaultCamera]] |
Revision as of 16:35, 14 September 2014
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)
- Groups:
- Uncategorised
Syntax
- Syntax:
- setDefaultCamera [position, direction]
- Parameters:
- position: PositionASL - position of the camera
- direction: vectorDir - 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
- See also:
- camCreatecameraOncameraViewcameraEffectcameraEffectEnableHUDswitchCamerapositionCameraToWorldcameraInterestsetCameraInterestgetEditorCameramapCenterOnCamerapreloadCamerarestartEditorCamera
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note