commander

From Bohemia Interactive Community
Revision as of 17:42, 24 May 2006 by Planck (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 gcommander Tank1 both refer to the same unit, providing the original commander has not got out of the tank.

The difference between the two is Tank1C is always the unit that was commander of the tank when the mission started, whilst commander Tank1 is the commander which is now there.