setPilotCameraDirection: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 13: | Line 13: | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= Vector3D: [[Array]] - [x,y,z] - format [[Vector3D]] relative to the model centre (In a similar fashion to [[Position#PositionRelative|PositionRelative]]) | |p2= Vector3D: [[Array]] - [x,y,z] - format [[Vector3D]] relative to the model centre (In a similar fashion to [[Position#PositionRelative|PositionRelative]]) | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf>vehicle player | |x1= <sqf>vehicle player setPilotCameraDirection [0,1,0] // re-centers the camera</sqf> | ||
|seealso= [[hasPilotCamera]] [[getPilotCameraPosition]] [[getPilotCameraDirection]] [[getPilotCameraRotation]] [[getPilotCameraTarget]] [[setPilotCameraRotation]] [[setPilotCameraTarget]] | |seealso= [[hasPilotCamera]] [[getPilotCameraPosition]] [[getPilotCameraDirection]] [[getPilotCameraRotation]] [[getPilotCameraTarget]] [[setPilotCameraRotation]] [[setPilotCameraTarget]] | ||
}} | }} |
Revision as of 16:28, 13 May 2022
Description
- Description:
- Sets the direction of object airplane or helicopter pilotCamera (vector in model space).
- Groups:
- Pilot Camera
Syntax
- Syntax:
- object setPilotCameraDirection Vector3D
- Parameters:
- object: Object
- Vector3D: Array - [x,y,z] - format Vector3D relative to the model centre (In a similar fashion to PositionRelative)
- Return Value:
- Nothing
Examples
- Example 1:
Additional Information
- See also:
- hasPilotCamera getPilotCameraPosition getPilotCameraDirection getPilotCameraRotation getPilotCameraTarget setPilotCameraRotation setPilotCameraTarget
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