emptyPositions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "user= *dreadedentity * " to "user= DreadedEntity ") |
||
Line 41: | Line 41: | ||
{{Note | {{Note | ||
|user= | |user= DreadedEntity | ||
|timestamp= 20220320000854 | |timestamp= 20220320000854 | ||
|text= '''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) | |text= '''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) | ||
<br>I have not found a way to test for copilot in helicopters | <br>I have not found a way to test for copilot in helicopters | ||
}} | }} |
Revision as of 11:41, 5 April 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 - can be one of:
- "Commander"
- "Driver"
- "Gunner"
- "Cargo"
- Return Value:
- Number
Examples
- Example 1:
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
- Posted on Mar 20, 2022 - 00:08 (UTC)
-
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
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