emptyPositions
Description
- Description:
- Returns the number of given empty positions in the vehicle.
- Groups:
- Object ManipulationUnit Control
Syntax
- Syntax:
- vehicle emptyPositions position
- Parameters:
- vehicle: Object
- position: String - can be one of:
- "Commander"
- "Driver"
- "Gunner"
- "Cargo" - Cargo + FFV
- "" - all empty position (since 2.10)
- Return Value:
- Number
Alternative Syntax
- Syntax:
- vehicle emptyPositions [position, filter]
- Parameters:
- vehicle: Object
- position: String - can be one of:
- "Commander"
- "Driver"
- "Gunner"
- "Cargo" - Cargo/FFV/Cargo+FFV (depends on 'filter' value)
- "" - all empty position (depends on 'filter' value)
- filter: Boolean - true: Cargo only, false: FFV only, ommited: Cargo+FFV (Default)
- Return Value:
- Number
Examples
- Example 1:
- Example 2:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation
- Command Group: Unit Control