Difference between revisions of "vehicle"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 20: Line 20:
  
 
'''Example:'''
 
'''Example:'''
 +
 
? '''vehicle''' [[player]] != [[player]] : [[hint]] "Player is in a vehicle"
 
? '''vehicle''' [[player]] != [[player]] : [[hint]] "Player is in a vehicle"

Revision as of 17:02, 15 April 2006

back to COMREF

vehicle unit


Operand types:

unit: Object

Type of returned value:

Object

Description:

Vehicle in which given unit is mounted.

If none, unit is returned.


Example:

? vehicle player != player : hint "Player is in a vehicle"