Warning: file_put_contents(/ff_455a6861fe0479d90f0bfdbcec3a0367c13ef61ac49c0ffa.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
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