setName: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) No edit summary |
No edit summary |
||
Line 70: | Line 70: | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]] | [[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]] | ||
{{subst:Add new note/construct| | |||
<!-- | |||
* Replace from here (including the arrow just above) | |||
* Please add your note here, replacing these comments | |||
* Please '''PREVIEW YOUR ADDITION BEFORE SAVING''' | |||
* Thank you | |||
* Equal symbols "=" should be added as "{{subst:=}}" (excluding quotes) | |||
* Pipes "|" should be added as "{{subst:!}}" (excluding quotes) | |||
* New lines should be forced by the use of "<br>" tags | |||
* Examples should be placed between tags <code>_like {{subst:=}} [[_this]];</code> | |||
* Replace to here (including the arrow just below) | |||
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. | |||
}} |
Revision as of 21:15, 18 August 2014
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
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.
- Posted on April 12, 2014
- Waffle SS.
- Seems to have no effect on players in Multiplayer. (ArmA 3 v1.00)
Bottom Section
{{subst:Add new note/construct|
Categories:
- Scripting Commands
- Introduced with Arma version 1.08
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands ArmA
- Command Group: Locations
- Command Group: Editor Control
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Arma 3: New Scripting Commands List