setDefaultCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{uc:{{PAGENAME}}}}" to "")
m (Text replacement - "| Nothing |x1=" to "|r1= Nothing |x1=")
Line 14: Line 14:
|p2= direction: [[Array]] - format [[Vector3D]] - direction of the camera
|p2= direction: [[Array]] - format [[Vector3D]] - direction of the camera


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[setDefaultCamera]] [[5000,5000,200],[1,1,-1]];</code>
|x1= <code>[[setDefaultCamera]] [[5000,5000,200],[1,1,-1]];</code>

Revision as of 10:19, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Camera Control

Syntax

Syntax:
Syntax needed
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