CBA_fnc_vehicleRole

Description

Get a unit’s role in its current vehicle.

Used because assignedVehicleRole reports the role assigned by the group leader instead of the current position.

Parameters

_unita soldier in a vehicle <OBJECT>

Example

_role = player call CBA_fnc_vehicleRole

Returns

Soldiers role in the current vehicle.  Can be “driver”, “gunner”, “commander”, “Turret”, or “cargo”.  Empty string if not in vehicle STRING

Author

commy2

string used by format
Close