BIS fnc getPitchBank: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Object Manipulation |GROUP1=") |
m (Text replacement - "\[\[Category\:Function Group\: Objects(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 40: | Line 40: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:getPitchBank}}]] | [[Category:Functions|{{uc:getPitchBank}}]] | ||
[[Category:{{Name|arma2}}: Functions|{{uc:getPitchBank}}]] | [[Category:{{Name|arma2}}: Functions|{{uc:getPitchBank}}]] | ||
[[Category:{{Name|arma2oa}}: Functions|{{uc:getPitchBank}}]] | [[Category:{{Name|arma2oa}}: Functions|{{uc:getPitchBank}}]] | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:getPitchBank}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:getPitchBank}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:getPitchBank}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:getPitchBank}}]] |
Revision as of 10:31, 10 October 2020
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:
_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