Arma 3 Scripting

getPilotCameraTarget

  • Local argument
  • Arma 3 v1.64

Command · Markdown · JSON · original wiki page

Description

Returns the target of the object airplane or helicopter pilotCamera tracking. Returns [false, [0,0,0], objNull] if camera is not in a tracking mode or if object has no pilotCamera.

Syntax

getPilotCameraTarget object

Parameters:

Returns: Array with [isTracking, targetPosition, targetObject]

Examples

Example 1

getPilotCameraTarget vehicle player params ["_pilotCamTracking", "_pilotCamTargetPos", "_pilotCamTarget"];

See also

hasPilotCamera · getPilotCameraPosition · getPilotCameraDirection · getPilotCameraRotation · setPilotCameraDirection · setPilotCameraRotation · setPilotCameraTarget