emptyPositions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 9: | Line 8: | ||
|gr2= Unit Control |GROUP2= | |gr2= Unit Control |GROUP2= | ||
| Returns the number of given positions in the vehicle. | | Returns the number of given positions in the vehicle. | ||
Positions can be ''"Commander", "Driver", "Gunner"'' or ''"Cargo"'' |DESCRIPTION= | Positions can be ''"Commander", "Driver", "Gunner"'' or ''"Cargo"'' |DESCRIPTION= | ||
| [[Number]] <nowiki>=</nowiki> vehicle '''emptyPositions ''' position |SYNTAX= | | [[Number]] <nowiki>=</nowiki> vehicle '''emptyPositions ''' position |SYNTAX= | ||
Line 23: | Line 20: | ||
| [[Number]] |RETURNVALUE= | | [[Number]] |RETURNVALUE= | ||
|x1= <code>_freeCargoPositions = [[vehicle]] [[player]] [[emptyPositions]] "cargo";</code> |EXAMPLE1= | |x1= <code>_freeCargoPositions = [[vehicle]] [[player]] [[emptyPositions]] "cargo";</code> |EXAMPLE1= | ||
| [[moveInDriver]], [[moveInTurret]], [[moveInCommander]], [[moveInGunner]], [[moveInCargo]], [[getCargoIndex]]|SEEALSO= | | [[moveInDriver]], [[moveInTurret]], [[moveInCommander]], [[moveInGunner]], [[moveInCargo]], [[getCargoIndex]]|SEEALSO= |
Revision as of 01:21, 17 January 2021
Description
- Description:
- Returns the number of given positions in the vehicle. Positions can be "Commander", "Driver", "Gunner" or "Cargo"
- Groups:
- Object ManipulationUnit Control
Syntax
- Syntax:
- Number = 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