Arma 3 Scripting

Command in Pilot Camera

getPilotCameraDirection

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns model space vector of the object airplane or helicopter pilotCamera .

Syntax

getPilotCameraDirection object

Parameters:

Returns: Vector3D - relative to the model centre (In a similar fashion to PositionRelative). Returns [0,0,0] if object has no pilotCamera.

Examples

Example 1

_pilotCamVector = getPilotCameraDirection vehicle player;

See also

hasPilotCamera · getPilotCameraPosition · getPilotCameraRotation · getPilotCameraTarget · setPilotCameraDirection · setPilotCameraRotation · setPilotCameraTarget