emptyPositions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
(tested this assertion by running emptyPositions and fullCrew(with both true & false) 1,000,000 times and comparing the runtime of each) |
||
Line 21: | Line 21: | ||
|descr= Returns the number of given positions in the vehicle. | |descr= Returns the number of given positions in the vehicle. | ||
{{Feature | Informative | To return the actual units in the vehicle use [[fullCrew]]. However if only the number is desired, use '''emptyPositions''' because it is faster.}} | |||
|s1= vehicle [[emptyPositions ]] position | |s1= vehicle [[emptyPositions ]] position |
Revision as of 00:38, 20 March 2022
Description
- Description:
- Returns the number of given positions in the vehicle.
- Groups:
- Object ManipulationUnit Control
Syntax
- Syntax:
- vehicle emptyPositions position
- Parameters:
- vehicle: Object
- position: String
- Return Value:
- Number
Examples
- Example 1:
_freeCargoPositions = vehicle player emptyPositions "cargo";
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
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