Difference between revisions of "name"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 1: Line 1:
[[Category:Scripting Commands|NAME]]
+
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|NAME]]
+
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|NAME]]
 
[[Category:Scripting Commands ArmA|NAME]]
 
  
 +
| ofp |= Game name
  
<h2 style="color:#000066">'''name ''object'''''</h2>
+
|1.00|= Game version
 +
____________________________________________________________________________________________
  
 +
| 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). |= Description
 +
____________________________________________________________________________________________
  
'''Operand types:'''
+
| '''name''' object |= Syntax
  
'''object:''' [[Object]]
+
|p1= object: [[Object]] |= Parameter 1
  
'''Type of returned value:'''
+
| [[String]] |= Return value
 +
____________________________________________________________________________________________
 +
 
 +
|x1= <pre>_name = name [[vehicle]] [[player]]</pre> |= Example 1
 +
____________________________________________________________________________________________
  
[[String]]
+
|  |= See also
  
'''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.
+
<h3 style="display:none">Notes</h3>
 +
<dl class="command_description">
 +
<!-- Note Section BEGIN -->
  
If used on vehicle, name of first crew member (in order commander, driver, gunner).
+
<!-- Note Section END -->
 +
</dl>
  
 +
<h3 style="display:none">Bottom Section</h3>
 +
Old Notes (temporary):
  
'''Example:'''
+
name will return an error for units that have been dead for more than a few seconds.
  
_name = '''name''' [[vehicle]] [[player]]
+
[[Category:Scripting Commands|NAME]]
 
+
[[Category:Scripting Commands OFP 1.96|NAME]]
 
+
[[Category:Scripting Commands OFP 1.46|NAME]]
'''Comments:'''
+
[[Category:Scripting Commands ArmA|NAME]]
 
 
'''name''' will return an error for units that have been dead for more than a few seconds.
 

Revision as of 23:32, 1 August 2006

Introduced with Operation Flashpoint version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

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).

Syntax

Syntax:
name object
Parameters:
object: Object
Return Value:
String

Examples

Example 1:
_name = name [[vehicle]] [[player]]

Additional Information

Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Old Notes (temporary):

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