setDefaultCamera: Difference between revisions
Killzone Kid (talk | contribs) (wanted to create a page but instead.....) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (57 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{RV|type=command | |||
|game1= arma3 | |||
|version1= 1.10 | |||
|gr1= Camera Control | |||
|descr= 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) | |||
|s1= [[setDefaultCamera]] [position, direction] | |||
|p1= position: [[Position#PositionASL|PositionASL]] - position of the camera | |||
|p2= direction: [[Vector3D]] - direction of the camera | |||
|r1= [[Nothing]] | |||
|x1= <sqf>setDefaultCamera [[5000, 5000, 200], [1, 1, -1]];</sqf> | |||
|x2= Lift camera 100m up above current player position and point downwards: | |||
<sqf>setDefaultCamera [ATLToASL (player modelToWorld [0, 0, 100]), [0, 0, -1]];</sqf> | |||
|seealso= [[camCreate]] [[cameraOn]] [[cameraView]] [[cameraEffect]] [[cameraEffectEnableHUD]] [[switchCamera]] [[positionCameraToWorld]] [[cameraInterest]] [[setCameraInterest]] [[getEditorCamera]] [[mapCenterOnCamera]] [[preloadCamera]] [[restartEditorCamera]] | |||
}} | |||
Latest revision as of 07:59, 2 January 2026
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: PositionASL - position of the camera
- direction: 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:
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.
Only post proven facts here! Add Note