getPilotCameraRotation

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.64
  Arguments of this scripting command have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.64

Description

Description:
Returns rotation (relative to the centered camera position) of the object airplane or helicopter pilotCamera .

Syntax

Syntax:
getPilotCameraRotation object
Parameters:
object: Object
Return Value:
Array - [x,y] - format [yaw (turn), pitch (elevation)]. Positive values are left yaw and down pitch from the center. Returns [0,0] when camera is centered but also if object has no pilotCamera.

Examples

Example 1:
_pilotCamRot = getPilotCameraRotation vehicle player

Additional Information

Multiplayer:
-
See also:
hasPilotCameragetPilotCameraPositiongetPilotCameraDirectiongetPilotCameraTargetsetPilotCameraDirectionsetPilotCameraRotationsetPilotCameraTarget

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section