BIS fnc getPitchBank: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
{{Function|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2 | | | arma2 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | | Returns the pitch and bank of an object, in degrees. '''Yaw''' can be found using the getdir command.<br /> | ||
'''Pitch''' is 0 when the object is level; 90 when pointing straight up; and -90 when pointing straight down.<br /> | |||
'''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. | |||
{{Important|The '''bank''' returned by this command is not fully accurate, it can be off by up to 5% or so (depending on pitch) due to an unknown bug.}} |Description= | |||
The bank returned by this command is not fully accurate, it | |||
can be off by up to 5% or so (depending on pitch) | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | object call [[BIS_fnc_getPitchBank]] |Syntax= | ||
|p1= | | |p1= object: [[Object]] |Parameter 1= | ||
| | | | [[Array]] of [[Number|Numbers]] - format [pitch, bank] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>_pitchBank = [[vehicle]] [[player]] [[call]] [[BIS_fnc_getPitchBank]];</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[BIS_fnc_setPitchBank]], [[vectorDir]], [[vectorUp]], [[setVectorDirAndUp]] |See also= | ||
}} | }} | ||
Line 56: | Line 37: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:getPitchBank}}]] | |||
[[Category:Function Group: Objects|{{uc:getPitchBank}}]] | [[Category:Function Group: Objects|{{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 22:48, 30 May 2018
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:
- Uncategorised
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