setNameSound: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on December ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-12-$1") |
||
(30 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.02 | |||
|1.02 | |||
|arg= global | |arg= global | ||
Line 11: | Line 10: | ||
|gr1= Unit Identity | |gr1= Unit Identity | ||
| 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!". | |descr= 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> | {{Feature | Informative | See [[Arma 3 CfgIdentities#NameSounds|CfgIdentities - NameSounds]] for common values.<br> | ||
Note that any word from | Note that any word from {{hl|[[configfile]] >> "RadioProtocolENG" >> "Words"}} is accepted (e.g "veh_infantry_Sniper_s").}} | ||
| person [[setNameSound]] name | |s1= person [[setNameSound]] name | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
Line 22: | Line 21: | ||
|p2= name: [[String]] | |p2= name: [[String]] | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
| | |x1= <sqf>unit1 setNameSound "dixon";</sqf> | ||
|x2= <sqf>unit1 setNameSound ""; // will reset to default behaviour</sqf> | |||
|x3= <sqf>_name = "Masood"; | |||
unit1 setNameSound _name; | |||
unit1 setName _name;</sqf> | |||
| | |seealso= [[nameSound]] [[name]] [[setName]] [[setIdentity]] | ||
}} | }} | ||
<dl class="command_description"> | |||
<dl class= | |||
<dd class="notedate">Posted on | <dt><dt> | ||
<dt class="note">[[User:Lou Montana|Lou Montana]] | <dd class="notedate">Posted on 2013-12-22 - 19:08 (UTC)</dd> | ||
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt> | |||
<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") | ||
</dl> | </dl> | ||
Revision as of 00:13, 14 May 2023
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:
- Unit Identity
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:
Additional Information
- See also:
- nameSound name setName setIdentity
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 2013-12-22 - 19:08 (UTC)
- Lou Montana
- setting an incorrect value like "0" or "randomString" will remove the callsign (" /* 2, */ fall back")