commander: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 28: | Line 28: | ||
'''Notes:''' | '''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. | 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. |
Revision as of 17:42, 24 May 2006
commander vehicle
Operand types:
vehicle: Object
Type of returned value:
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.