setPilotCameraDirection: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
No edit summary
Line 14: Line 14:
|p1= object: [[Object]] - a vehicle equipped with pilot camera
|p1= object: [[Object]] - a vehicle equipped with pilot camera


|p2= vector3D: [[Array]] in format [[Vector3D]] - in model space, relative to the model centre (In a similar fashion to [[Position#PositionRelative|PositionRelative]])
|p2= vector3D: [[Array]] format [[Vector3D]] - in model space, relative to the model centre (In a similar fashion to [[Position#PositionRelative|PositionRelative]])


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

Revision as of 07:36, 2 January 2026

Hover & click on the images for description

Description

Description:
Sets the direction of airplane's or helicopter's pilotCamera.
Groups:
Pilot Camera

Syntax

Syntax:
object setPilotCameraDirection vector3D
Parameters:
object: Object - a vehicle equipped with pilot camera
vector3D: Array format Vector3D - in model space, relative to the model centre (In a similar fashion to PositionRelative)
Return Value:
Nothing

Examples

Example 1:
vehicle player setPilotCameraDirection [0,1,0] // re-centers the camera

Additional Information

See also:
hasPilotCamera getPilotCameraPosition getPilotCameraDirection getPilotCameraRotation getPilotCameraTarget setPilotCameraRotation setPilotCameraTarget

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note