From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Returns an array with all crew inside given vehicle, with or without empty seats.
⚠
With the introduction of person turrets (FFV), the returned
cargoIndex works with
moveInCargo but does not with
actions such as "GetInCargo" and "MoveToCargo". To find out indexes for actions, use the "cargo" filter (See
Example 3).
- Groups:
- Object Manipulation
Syntax
- Syntax:
- fullCrew vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array - list of arrays in format [unit, role, cargoIndex, turretPath, personTurret]:
- Syntax:
- fullCrew [vehicle, type, includeEmpty]
- Parameters:
- vehicle: Object
- type: String - role filter (case-insensitive). An invalid value (e.g "") will return all positions. Available values:
- "driver"
- "commander"
- "gunner"
- "turret"
- "cargo"
- since
1.56
1.56 includeEmpty: Boolean - (Optional, default false) include empty crew seats- Return Value:
- Array - list of arrays in format [unit, role, cargoIndex, turretPath, personTurret]:
Examples
- Example 1:
_list = fullCrew vehicle player;
- Example 2:
_list = fullCrew [vehicle player, "turret"];
- Example 3:
private _actionCompatibleCargoIndexes = fullCrew [heli, "cargo", true];
player moveInCargo [heli, 2];
player action ["GetInCargo", heli, 0];
Additional Information
- See also:
- crewcreateVehicleCrewassignedVehicleRoleallTurrets
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note