setName: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ") |
Lou Montana (talk | contribs) m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ") |
||
Line 47: | Line 47: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on July 9, 2010 | <dd class="notedate">Posted on July 9, 2010</dd> | ||
<dt class="note">[[User:kju|kju]] | <dt class="note">[[User:kju|kju]] | ||
<dd class="note">Appears to be only for the 3d editor. | <dd class="note">Appears to be only for the 3d editor. | ||
<dd class="notedate">Posted on September 19, 2013 | <dd class="notedate">Posted on September 19, 2013</dd> | ||
<dt class="note">[[User:Druid|Druid]] | <dt class="note">[[User:Druid|Druid]] | ||
<dd class="note">Support of a person as the first parameter from Arma 3 v. 1.02. | <dd class="note">Support of a person as the first parameter from Arma 3 v. 1.02. | ||
<dd class="notedate">Posted on April 12, 2014 | <dd class="notedate">Posted on April 12, 2014</dd> | ||
<dt class="note">[[User:Waffle SS.|Waffle SS.]] | <dt class="note">[[User:Waffle SS.|Waffle SS.]] | ||
<dd class="note">Seems to have no effect on players in Multiplayer. (Arma 3 v1.00) | <dd class="note">Seems to have no effect on players in Multiplayer. (Arma 3 v1.00) | ||
<dd class="notedate">Posted on August 18, 2014 | <dd class="notedate">Posted on August 18, 2014</dd> | ||
<dt class="note">[[User:Pierre MGI|Pierre MGI]] | <dt class="note">[[User:Pierre MGI|Pierre MGI]] | ||
<dd class="note">Only last name will appear in command bar i.e. this setname _mynameArray will display _mynameArray select 2. If setname is used with a string : this setname "blah", nothing occurs in command bar and default randomized name is displayed. | <dd class="note">Only last name will appear in command bar i.e. this setname _mynameArray will display _mynameArray select 2. If setname is used with a string : this setname "blah", nothing occurs in command bar and default randomized name is displayed. |
Revision as of 01:02, 30 January 2021
Description
- Description:
- Description needed
- Groups:
- Unit Identity
Syntax 1
- Syntax:
- Syntax needed
- Parameters:
- object: Object
- name: String
- Return Value:
- Return value needed
Syntax 2
- Syntax:
- unit setName [name, firstName, lastName]
- Parameters:
- unit: Object
- [name, firstName, lastName]: Array
- name: String
- firstName: String
- lastName: String
- location: Location
- name: String
- Return Value:
- Nothing
Syntax 3
- Syntax:
- location setName name
- 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:
- 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
- Posted on July 9, 2010
- kju
- Appears to be only for the 3d editor.
- Posted on September 19, 2013
- Druid
- Support of a person as the first parameter from Arma 3 v. 1.02.
- Posted on April 12, 2014
- Waffle SS.
- Seems to have no effect on players in Multiplayer. (Arma 3 v1.00)
- Posted on August 18, 2014
- Pierre MGI
- Only last name will appear in command bar i.e. this setname _mynameArray will display _mynameArray select 2. If setname is used with a string : this setname "blah", nothing occurs in command bar and default randomized name is displayed.
Dealing with the units' names in a script, _x (in a foreach units group, for example) will return the "object" as B ALFA 4-1:2 or the name written in ai unit name field in editor (if exists). This context is rather a "variable name" for each object (ai) than an "identity name" as given via setname function.