getPilotCameraRotation: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ") |
||
Line 16: | Line 16: | ||
|x1= <code>_pilotCamRot = '''getPilotCameraRotation''' [[vehicle]] [[player]]</code> | |x1= <code>_pilotCamRot = '''getPilotCameraRotation''' [[vehicle]] [[player]]</code> | ||
|seealso= [[hasPilotCamera]] [[getPilotCameraPosition]] [[getPilotCameraDirection]] [[getPilotCameraTarget]] | |seealso= [[hasPilotCamera]] [[getPilotCameraPosition]] [[getPilotCameraDirection]] [[getPilotCameraTarget]] [[setPilotCameraDirection]], [[setPilotCameraRotation]], [[setPilotCameraTarget]] | ||
}} | }} |
Revision as of 16:26, 20 January 2022
Description
- Description:
- Returns rotation (relative to the centered camera position) of the object airplane or helicopter pilotCamera .
- Groups:
- Pilot Camera
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
Additional Information
- See also:
- hasPilotCamera getPilotCameraPosition getPilotCameraDirection getPilotCameraTarget setPilotCameraDirectionsetPilotCameraRotationsetPilotCameraTarget
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note