fn vbs getPitchBank (VBS2)

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Virtual Battlespace 2 version 1.19

Click on the images for descriptions

Introduced in

Game:
Virtual Battlespace 2
Version:
1.19

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.

Syntax

Syntax:
object call fn_vbs_getPitchBank
Parameters:
object: Object -
Return Value:
Array - [pitch (Number), bank (Number)]

Examples

Example 1:
_pitchbank = car call fn_vbs_getPitchBank;

Additional Information

Multiplayer:
Behaviour unknown.
See also:
fn_vbs_setPitchBank_(VBS2)

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!