setName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(alternative syntax)
Line 19: Line 19:
|p2= name: [[String]] |= Parameter 2
|p2= name: [[String]] |= Parameter 2


| [[Nothing]] |= Return value
|[[Nothing]] |= Return value
____________________________________________________________________________________________
 
|s2= unit '''setName''' [name, first name, last name] |= Alternative Syntax
 
|p21= unit: [[Object]] |= Parameter 1
|p22= name: [[String]] |= Parameter 2
|p23= first name: [[String]] |= Parameter 3
|p24= last name: [[String]] |= Parameter 4
 
|r2= [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>myLocation setName "My Location Name"</pre> |= Example 1
|x1= <code>myLocation [[setName]] "My Location Name";</code> |= Example 1
|x2= <pre>player setName "New Name"</pre> |= Example 2
|x2= <code>[[player]] [[setName]] "New Name";</code> |= Example 2
|x3= <code>[[player]] [[setName]] ["Karel","Karel","Mořický"];</code> |= Example 3
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 12:22, 13 December 2013

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

Description

Description:
Sets the name of a location or a person.
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 ["Karel","Karel","Mořický"];

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