setDefaultCamera: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - ": PositionASL" to ": Array format PositionASL") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 15: | Line 15: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code> | |x1= <code>setDefaultCamera [[5000,5000,200],[1,1,-1]];</code> | ||
|x2= Lift camera 100m up above current player position and point downwards: | |x2= Lift camera 100m up above current player position and point downwards: | ||
<code> | <code>setDefaultCamera [<nowiki/>[[ATLtoASL]] ([[player]] [[modelToWorld]] [0,0,100]),[0,0,-1]];</code> | ||
|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 11:14, 12 May 2022
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:
- Camera Control
Syntax
- Syntax:
- setDefaultCamera [position, direction]
- Parameters:
- position: Array format 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:
- camCreate cameraOn cameraView cameraEffect cameraEffectEnableHUD switchCamera positionCameraToWorld cameraInterest setCameraInterest getEditorCamera mapCenterOnCamera preloadCamera restartEditorCamera
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