fullCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) m (Text replacement - "\| *p([0-9]+) *=([^ ]+) *\{\{Since\|(.+)\|([0-9]\.[0-9]5)[^ ]+\}\} " to "|p$1= $2 |p$1since= $3 $4THEINCREDIBLEHULK6 ") |
||
Line 34: | Line 34: | ||
* "cargo" | * "cargo" | ||
|p23= {{GVI|arma3|1.56}} includeEmpty: [[Boolean]] - (Optional, default [[false]]) include empty crew seats | |p23= {{GVI|arma3|1.56}} includeEmpty: [[Boolean]] - (Optional, default [[false]]) include empty crew seats | ||
|p23since= arma3 1.55THEINCREDIBLEHULK6 | |||
|r2= [[Array]] - list of arrays in format [unit, role, cargoIndex, turretPath, personTurret]: | |r2= [[Array]] - list of arrays in format [unit, role, cargoIndex, turretPath, personTurret]: |
Revision as of 23:03, 10 August 2021
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]:
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 <span class="gvi2 gvi-arma3Expression error: Unrecognized word "theincrediblehulk". Expression error: Unrecognized word "theincrediblehulk". Expression error: Unrecognized word "theincrediblehulk"." style="font-size: 11.1px; height: 27.2px; width: 27.2px">1.55THEINCREDIBLEHULK6
- 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]; /* returns for example (on an armed WY-55 Hellcat): [ [objNull, "cargo" ,2, [], false], [objNull, "cargo", 3, [], false], [objNull, "cargo", 4, [], false], [objNull, "cargo", 5, [], false] ] 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