BIS fnc getPitchBank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
(Add Argument Effect Global and getDir link)
Line 5: Line 5:


|1.00|Game version=
|1.00|Game version=
|arg= global |arguments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the pitch and bank of an object, in degrees. '''Yaw''' can be found using the getdir command.<br />
| 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 />
'''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.
'''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.



Revision as of 23:50, 30 May 2018

Hover & click on the images for description

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.
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.
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

See also:
BIS_fnc_setPitchBankvectorDirvectorUpsetVectorDirAndUp

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

Notes

Bottom Section