setDefaultCamera: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=") |
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory *\| *arma3 *\| *(New )?Scripting Commands\}\}" to "") |
||
Line 23: | Line 23: | ||
|seealso= [[camCreate]], [[cameraOn]], [[cameraView]], [[cameraEffect]], [[cameraEffectEnableHUD]], [[switchCamera]], [[positionCameraToWorld]], [[cameraInterest]], [[setCameraInterest]], [[getEditorCamera]], [[mapCenterOnCamera]], [[preloadCamera]], [[restartEditorCamera]] | |seealso= [[camCreate]], [[cameraOn]], [[cameraView]], [[cameraEffect]], [[cameraEffectEnableHUD]], [[switchCamera]], [[positionCameraToWorld]], [[cameraInterest]], [[setCameraInterest]], [[getEditorCamera]], [[mapCenterOnCamera]], [[preloadCamera]], [[restartEditorCamera]] | ||
}} | }} | ||
Revision as of 02:34, 13 June 2021
Description
- Description:
- Description needed
- Groups:
- Camera Control
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
- 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