BIS fnc getPitchBank: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma2 * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= arma2 |version1= $1 |game2") |
Lou Montana (talk | contribs) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 23: | Line 23: | ||
{{Feature|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.}} | {{Feature|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.}} | ||
|s1= | |s1= object call [[BIS_fnc_getPitchBank]] | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|r1=[[Array]] of [[Number | |r1= [[Array]] of [[Number]]s - format [pitch, bank] | ||
|x1= < | |x1= <sqf>private _pitchBank = vehicle player call BIS_fnc_getPitchBank;</sqf> | ||
|seealso= [[BIS_fnc_setPitchBank]] | |seealso= [[BIS_fnc_setPitchBank]] [[vectorDir]] [[vectorUp]] [[setVectorDirAndUp]] | ||
}} | }} | ||
Latest revision as of 00:38, 13 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:
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