assignedVehicleRole

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.05

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.05

Description

Description:
Return the role a unit is assigned to within its assigned vehicle.

The array which is returned contains:

  • [] - Not assigned to any vehicle
  • ["Driver"] - Assigned as driver
  • ["Cargo"] - Assigned as cargo
  • ["Turret", [turret path]] - Assigned to a turret

If no vehicle role is assigned, an empty array is returned.

Syntax

Syntax:
Array = assignedVehicleRole Unit
Parameters:
Unit: Object
Return Value:
Array

Examples

Example 1:
_RoleArray=assignedVehicleRole 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!