commander

From Bohemia Interactive Community
Revision as of 16:52, 21 May 2006 by Thobson (talk | contribs)
Jump to navigation Jump to search


commander vehicle


Operand types:

vehicle: Object

Type of returned value:

Object

Description:

Commander of the vehicle, if vehicle is not a vehicle but is a person, then the person is returned.


Example:

_unit = commander vehicle player


Notes:

It is also possible to find the commander of a vehicle by placing a C after the name of the vehicle so:
Tank1C and
commander Tank1
both refer to the same unit.