commander: Difference between revisions

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


_unit = '''commander''' [[vehicle]] [[player]]
_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:<br>
Tank1C and<br>
'''commander''' Tank1<br>
both refer to the same unit.

Revision as of 16:52, 21 May 2006


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.