fullCrew
Jump to navigation
Jump to search
Description
- Description:
- Returns an array with all crew inside given vehicle, with or without empty seats.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- fullCrew vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array - list of arrays in format [unit, role, cargoIndex, turretPath, personTurret, assignedUnit, positionName]:
- unit: Object
- role: String - not always lowercase before 2.04
- cargoIndex: Number
- turretPath: Array
- personTurret: Boolean
- 2.12 assignedUnit: Object - see assignAsXXX commands, assignAsDriver for example
- 2.12 positionName: String - unlocalized entry for turret's `gunnerName`, for example "$STR_A3_TURRETS_CARGOTURRET_R2"
Alternative Syntax
- 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
- includeEmpty: Boolean - (Optional, default false) include empty crew seats
- Return Value:
- Array - list of arrays in format [unit, role, cargoIndex, turretPath, personTurret, assignedUnit, positionName]:
- unit: Object
- role: String - not always lowercase before 2.04
- cargoIndex: Number
- turretPath: Array
- personTurret: Boolean
- 2.12 assignedUnit: Object - see assignAsXXX commands, assignAsDriver for example
- 2.12 positionName: String - unlocalized entry for turret's `gunnerName`, for example "$STR_A3_TURRETS_CARGOTURRET_R2"
Examples
- Example 1:
- Example 2:
- Example 3:
- private _actionCompatibleCargoIndexes = fullCrew [heli, "cargo", true]; /* returns for example (on an empty armed WY-55 Hellcat): [ [objNull, "cargo", 2, [], false, objNull, "$STR_GETIN_POS_PASSENGER"], [objNull, "cargo", 3, [], false, objNull, "$STR_GETIN_POS_PASSENGER"], [objNull, "cargo", 4, [], false, objNull, "$STR_GETIN_POS_PASSENGER"], [objNull, "cargo", 5, [], false, objNull, "$STR_GETIN_POS_PASSENGER"] ] using the element's index is compatible with action cargo commands - see below */ // the following commands will put the player in the same seat: player moveInCargo [heli, 2]; player action ["GetInCargo", heli, 0];
Additional Information
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