emptyPositions: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|EMPTYPOSITIONS]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|EMPTYPOSITIONS]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">'''''vehicle'' emptyPositions ''position'''''</h2>
|2.92|= Game version
____________________________________________________________________________________________


| Returns the number of available cargo, driver, gunner or commander positions in the vehicle. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| vehicle '''emptyPositions''' position |= Syntax


'''vehicle''': [[Object]]
|p1= vehicle [[Object]] |= Parameter 1


'''position''': [[String]]
|p2= position [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_freePositions = ([[vehicle]] [[player]]) emptyPositions "cargo"</pre> |= Example 1
____________________________________________________________________________________________


[[Number]]
|  |= See also


'''Compatibility:'''
}}


Version 2.92 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Returns the number of available cargo, driver, gunner or commander positions in the vehicle.
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|EMPTYPOSITIONS]]
'''Example''':
[[Category:Scripting Commands ArmA|EMPTYPOSITIONS]]
   
_freePositions = ([[vehicle]] [[player]]) '''emptyPositions''' "cargo"

Revision as of 10:05, 2 August 2006

-wrong parameter ("Arma") defined!-2.92
Hover & click on the images for description

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

Notes

Bottom Section