Notice: Undefined index: bbc_off_topic_icon in /home/ofpecsav/public_html/forum/Sources/Subs.php on line 1604

Notice: Undefined index: bbc_off_topic_icon in /home/ofpecsav/public_html/forum/Sources/Subs.php on line 1611
assignedVehicleRole - OFPEC Scripting Command Reference | OFPEC The Editing Center

assignedVehicleRole unitName

Operand types

unitName: Object

Type of returned value

Description

Returns the role that a unit is assigned to within its assigned vehicle. The array which is returned can contain:

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

Used In

ArmA

Example

_role = assignedVehicleRole fred

Advertisement