getCrewPos (VBS2)

From Bohemia Interactive Community

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

Click on the images for descriptions

Introduced in

Game:
Virtual Battlespace 2
Version:
1.00

Description

Description:
Returns a list of arrays, each array contains [<string:proxy type>, <position:proxy position>, <number:ID>, <object: unit>, <array: turret path>].

Proxy type can be one of "driver", "gunner", "commander", "cargo". Proxy position is relative to the vehicle. ID is the ID of a cargo proxy. Unit is the unit, which is sitting in the proxy. Turret path is the path of the turret or just an empty array, if it is not a turret.

Syntax

Syntax:
getCrewPos vehicle
Parameters:
vehicle: Object -
Return Value:
Array

Examples

Example 1:
_crewPositions = getCrewPos (vehicle player)

Additional Information

Multiplayer:
Behaviour unknown.

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!