getPilotCameraTarget

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 the target of the object airplane or helicopter pilotCamera tracking.

Syntax

Syntax:
getPilotCameraTarget object
Parameters:
object: Object
Return Value:
Array - [isTracking, targetPosition, targetObject]; returns [false,[0,0,0],<NULL-object>] if camera is not in a tracking mode or if object has no pilotCamera.
  • isTracking: Bool - returns whether the camera is in a tracking mode
  • targetPosition: Array - format PositionASL, returns the position of the tracked area or object
  • targetObject: Object - returns the tracked object, objNull if camera is only tracking an area

Examples

Example 1:
_pilotCamTrack = (getPilotCameraTarget vehicle player) select 0; _pilotCamTargetPos = (getPilotCameraTarget vehicle player) select 1; _pilotCamTarget = (getPilotCameraTarget vehicle player) select 2;

Additional Information

Multiplayer:
-
See also:
hasPilotCameragetPilotCameraPositiongetPilotCameraDirectiongetPilotCameraRotationsetPilotCameraDirectionsetPilotCameraRotationsetPilotCameraTarget

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