DreadedEntity
emptyPositions combines both turret and cargo in its output. If you must know the true count of either, you will have to use fullCrew (tested on several vehicles)
I have not found a way to test for copilot in helicopters
Results appear below as you type; use the arrow keys to move through them.
Command · also in Unit Control · Markdown · JSON · original wiki page
Returns the number of given empty positions in the vehicle.
Note
To return the actual units in the vehicle use fullCrew. However if only the number is desired, use emptyPositions because it is faster.
vehicle emptyPositions position
Parameters:
vehicle: Object - transport
position: String - can be one of:
"Commander""Driver""Gunner""Cargo" - all cargo positions, FFV or not"" - all empty positions"CargoNoFFV" - non-FFV cargo"CargoFFV" - FFV cargo"Turret" - empty turrets (no FFV turrets, they are included in "CargoFFV")Returns: Number - the number of available positions ignoring locked positions
since arma3 2.22
vehicle emptyPositions [position, ignoreLocked]
Parameters:
vehicle: Object - transportposition: String - see moveInAny. Empty string "" returns number of all free positionsignoreLocked (Optional): Boolean - true to ignore locked positions. Default: falseReturns: Number - the number of available positions ignoring locked positions
_freeCargoAndFFVPositions = vehicle player emptyPositions "Cargo";
_freeCargoOnlyPositions = vehicle player emptyPositions "CargoNoFFV";
moveInDriver · moveInTurret · moveInCommander · moveInGunner · moveInCargo · getCargoIndex · moveInAny
emptyPositions combines both turret and cargo in its output. If you must know the true count of either, you will have to use fullCrew (tested on several vehicles)
I have not found a way to test for copilot in helicopters