Difference between revisions of "name"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 18: Line 18:
 
'''Description:'''
 
'''Description:'''
  
Name of variable assigned to object in mission editor.
+
The name given to a unit using the [[setIdentity]] instruction or selected randomly by the game engine if [[setIdentity]] has not been used on the unit.
  
 
If used on vehicle, name of first crew member (in order commander, driver, gunner).
 
If used on vehicle, name of first crew member (in order commander, driver, gunner).
Line 26: Line 26:
  
 
_name = '''name''' [[vehicle]] [[player]]
 
_name = '''name''' [[vehicle]] [[player]]
 +
 +
'''Comments:'''<br>
 +
'''name''' will return an error for units that have been dead for more than a few seconds

Revision as of 22:15, 1 May 2006


name object


Operand types:

object: Object

Type of returned value:

String

Description:

The name given to a unit using the setIdentity instruction or selected randomly by the game engine if setIdentity has not been used on the unit.

If used on vehicle, name of first crew member (in order commander, driver, gunner).


Example:

_name = name vehicle player

Comments:
name will return an error for units that have been dead for more than a few seconds