BIS fnc getPitchBank: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 29: | Line 29: | ||
|r1= [[Array]] of [[Number|Numbers]] - format [pitch, bank] | |r1= [[Array]] of [[Number|Numbers]] - format [pitch, bank] | ||
|x1= <code>private _pitchBank = vehicle player | |x1= <code>private _pitchBank = vehicle player call [[BIS_fnc_getPitchBank]];</code> | ||
|seealso= [[BIS_fnc_setPitchBank]] [[vectorDir]] [[vectorUp]] [[setVectorDirAndUp]] | |seealso= [[BIS_fnc_setPitchBank]] [[vectorDir]] [[vectorUp]] [[setVectorDirAndUp]] | ||
}} | }} |
Revision as of 21:38, 12 July 2022
Description
- Description:
- Returns the pitch and bank of an object, in degrees. Yaw can be found using the getDir command.
Pitch is 0 when the object is level; 90 when pointing straight up; and -90 when pointing straight down.
Bank is 0 when level; 90 when the object is rolled to the right, -90 when rolled to the left, and 180 when rolled upside down. - Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- object call BIS_fnc_getPitchBank
- Parameters:
- object: Object
- Return Value:
- Array of Numbers - format [pitch, bank]
Examples
- Example 1:
private _pitchBank = vehicle player call BIS_fnc_getPitchBank;
Additional Information
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