emptyPositions: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|2.92|= Game version | |||
____________________________________________________________________________________________ | |||
| Returns the number of available cargo, driver, gunner or commander positions in the vehicle. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | vehicle '''emptyPositions''' position |= Syntax | ||
|p1= vehicle [[Object]] |= Parameter 1 | |||
|p2= position [[String]] |= Parameter 2 | |||
| [[Number]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>_freePositions = ([[vehicle]] [[player]]) emptyPositions "cargo"</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|EMPTYPOSITIONS]] | |||
[[Category:Scripting Commands ArmA|EMPTYPOSITIONS]] | |||
Revision as of 10:05, 2 August 2006
Description
- Description:
- Returns the number of available cargo, driver, gunner or commander positions in the vehicle.
- Groups:
- Uncategorised
Syntax
- Syntax:
- vehicle emptyPositions position
- Parameters:
- vehicle Object
- position String
- Return Value:
- Number
Examples
- Example 1:
_freePositions = ([[vehicle]] [[player]]) emptyPositions "cargo"
Additional Information
- See also:
- See also needed
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