emptyPositions: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
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

Hover & click on the images for description

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

See also:
moveInDrivermoveInTurretmoveInCommandermoveInGunnermoveInCargogetCargoIndex

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

Notes

Bottom Section