setName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Example name changed to a one without special Czech characters)
(arma 3 note)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets the name of a location or a person. |= Description
| Sets the name of a location or a person. In Arma 3 this can be used to set [[name]] of a person but only in single player. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:31, 8 February 2014

-wrong parameter ("Arma") defined!-1.08
Hover & click on the images for description

Description

Description:
Sets the name of a location or a person. In Arma 3 this can be used to set name of a person but only in single player.
Groups:
Uncategorised

Syntax

Syntax:
object setName name
Parameters:
object: Location or Object
name: String
Return Value:
Nothing

Alternative Syntax

Syntax:
unit setName [name, first name, last name]
Parameters:
unit: Object
name: String
first name: String
last name: String
Return Value:
Nothing

Examples

Example 1:
myLocation setName "My Location Name";
Example 2:
player setName "New Name";
Example 3:
player setName ["Ben Kerry","Ben","Kerry"];

Additional Information

See also:
name

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

kju
Appears to be only for the 3d editor.
Druid
Support of a person as the first parameter from Arma 3 v. 1.02.

Bottom Section