setNameSound: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) (Fix description and clean comments) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets the [[nameSound]] of a person. By default, when giving orders, the units are addressed by their number. When nameSound is set, it will be used instead to address the unit. For example: "Two, hold fire!", one can have: "Miller, hold fire!" |DESCRIPTION= | | Sets the [[nameSound]] of a person. By default, when giving orders, the units are addressed by their number. When nameSound is set, it will be used instead to address the unit. For example: "Two, hold fire!", one can have: "Miller, hold fire!". | ||
{{Informative | See [[Arma 3 CfgIdentities#NameSounds|CfgIdentities - NameSounds]] for common values.<br> | |||
Note that any word from <tt>[[configfile]] >> "RadioProtocolENG" >> "Words"</tt> is accepted (e.g "veh_infantry_Sniper_s").}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| person | | person [[setNameSound]] name |SYNTAX= | ||
|p1= person: [[Object]] |PARAMETER1= | |p1= person: [[Object]] |PARAMETER1= | ||
|p2= name: [[String]] |PARAMETER2= | |p2= name: [[String]] |PARAMETER2= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>unit1 [[setNameSound]] "dixon";</code>|EXAMPLE1= | |x1= <code>unit1 [[setNameSound]] "dixon";</code>|EXAMPLE1= | ||
Line 25: | Line 29: | ||
|x3= <code>_name = "Masood"; | |x3= <code>_name = "Masood"; | ||
unit1 [[setNameSound]] _name; | unit1 [[setNameSound]] _name; | ||
unit1 [[setName]] _name;</code>|EXAMPLE3= | unit1 [[setName]] _name;</code>|EXAMPLE3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 38: | Line 42: | ||
<dl class='command_description'> | <dl class='command_description'> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on December 22, 2013 - 19:08 (UTC) | <dd class="notedate">Posted on December 22, 2013 - 19:08 (UTC) | ||
<dt class="note"> | <dt class="note">[[User:Lou Montana|Lou Montana]] | ||
<dd class="note">setting an incorrect value like "0" or "randomString" will remove the callsign (" ''/* 2, */'' fall back") | <dd class="note">setting an incorrect value like "0" or "randomString" will remove the callsign (" ''/* 2, */'' fall back") | ||
Line 130: | Line 54: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 23:18, 5 January 2020
Description
- Description:
- Sets the nameSound of a person. By default, when giving orders, the units are addressed by their number. When nameSound is set, it will be used instead to address the unit. For example: "Two, hold fire!", one can have: "Miller, hold fire!".
- Groups:
- Uncategorised
Syntax
- Syntax:
- person setNameSound name
- Parameters:
- person: Object
- name: String
- Return Value:
- Nothing
Examples
- Example 1:
unit1 setNameSound "dixon";
- Example 2:
unit1 setNameSound ""; // will reset to default behaviour
- Example 3:
_name = "Masood"; unit1 setNameSound _name; unit1 setName _name;
Additional Information
- See also:
- nameSoundnamesetNamesetIdentity
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
- Posted on December 22, 2013 - 19:08 (UTC)
- Lou Montana
- setting an incorrect value like "0" or "randomString" will remove the callsign (" /* 2, */ fall back")