name: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
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

Hover & click on the images for description

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).
Groups:
Uncategorised

Syntax

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

Examples

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

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Old Notes (temporary):

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