vehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#V|COMREF]]
<h2 style="color:#000066">''' vehicle ''unit'''''</h2>
<h2 style="color:#000066">''' vehicle ''unit'''''</h2>
   
   
'''Operand types:'''
'''Operand types:'''
Line 12: Line 15:


Vehicle in which given unit is mounted.
Vehicle in which given unit is mounted.
If none, unit is returned.
If none, unit is returned.


'''Example:'''
'''Example:'''
? '''vehicle''' player != player : hint "Player is in a vehicle"
? '''vehicle''' [[player]] != [[player]] : [[hint]] "Player is in a vehicle"

Revision as of 16:01, 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"