emptyPositions: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 3: Line 3:




<h2 style="color:#000066">''vehicle'' ''''' emptyPositions ''vehicle'''''</h2>
<h2 style="color:#000066">'''''vehicle'' emptyPositions ''vehicle'''''</h2>




Line 14: Line 14:
'''Type of returned value:'''
'''Type of returned value:'''


[[Object]]
[[Number]]


'''Compatibility:'''
'''Compatibility:'''
Line 23: Line 23:


Returns the number of available cargo, driver, gunner or commander positions in the vehicle.
Returns the number of available cargo, driver, gunner or commander positions in the vehicle.


'''Example''':
'''Example''':
      
      
_freePositions = ([[vehicle]] [[player]]) '''emptyPositions''' "cargo"
_freePositions = ([[vehicle]] [[player]]) '''emptyPositions''' "cargo"

Revision as of 22:46, 3 July 2006


vehicle emptyPositions vehicle


Operand types:

vehicle: [Object]]

position: String

Type of returned value:

Number

Compatibility:

Version 2.92 required.

Description:

Returns the number of available cargo, driver, gunner or commander positions in the vehicle.


Example:

_freePositions = (vehicle player) emptyPositions "cargo"