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:
object: Object
Returns: Array with [isTracking, targetPosition, targetObject]
- isTracking: Boolean - returns whether the camera is in a tracking mode
- targetPosition: 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
getPilotCameraTarget vehicle player params ["_pilotCamTracking", "_pilotCamTargetPos", "_pilotCamTarget"];
See also
hasPilotCamera · getPilotCameraPosition · getPilotCameraDirection · getPilotCameraRotation · setPilotCameraDirection · setPilotCameraRotation · setPilotCameraTarget