commander: Difference between revisions
Jump to navigation
Jump to search
No 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 | 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. | ||
Tank1C and | |||
''' | |||
both refer to the same unit. |
Revision as of 16:43, 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.