setNameSound: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - ">Posted on December ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-12-$1")
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.02


|1.02|= Game version
|arg= global


|arg= global |= Arguments in MP
|eff= local


|eff= local |= Effects in MP
|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!" |DESCRIPTION=
|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!".
____________________________________________________________________________________________


| person '''setNameSound''' name |SYNTAX=
{{Feature | Informative | See [[Arma 3 CfgIdentities#NameSounds|CfgIdentities - NameSounds]] for common values.<br>
Note that any word from {{hl|[[configfile]] >> "RadioProtocolENG" >> "Words"}} is accepted (e.g "veh_infantry_Sniper_s").}}


|p1= person: [[Object]] |PARAMETER1=
|s1= person [[setNameSound]] name
|p2= name: [[String]] |PARAMETER2=
| [[Nothing]] |RETURNVALUE=


|p1= person: [[Object]]


|x1= <code>unit1 [[setNameSound]] "dixon";</code>|EXAMPLE1=
|p2= name: [[String]]
|x2= <code>unit1 [[setNameSound]] ""; // will reset to default behaviour</code>|EXAMPLE2=
|x3= <code>_name = "Masood";
unit1 [[setNameSound]] _name;
unit1 [[setName]] _name;</code>|EXAMPLE3=


____________________________________________________________________________________________
|r1= [[Nothing]]


| [[nameSound]], [[name]], [[setName]], [[setIdentity]] |SEEALSO=  
|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>


| |MPBEHAVIOUR=  
|seealso= [[nameSound]] [[name]] [[setName]] [[setIdentity]]
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
<dl class="command_description">
<dl class='command_description'>
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on September 19, 2013
<dt class="note">'''[[User:kylania|kylania]]'''
<dd class="note">'''nameSound''' can be any preset BIS recorded name value.  By default units will be called out in voice by their number.  By using nameSound you can call them out by name using the following values:
<br>
''Default:''
Armstrong
Nichols
Tanny
Frost
Lacey
Larkin
Kerry
Jackson
Miller
McKendrick
Levine
Reynolds
<br>
''BLUFOR:''
Adams
Bennett
Campbell
Dixon
Everett
Franklin
Givens
Hawkins
Lopez
Martinez
OConnor
Ryan
Patterson
Sykes
Taylor
Walker
<br>
''OPFOR:''
Amin
Masood
Fahim
Habibi
Kushan
Jawadi
Nazari
Siddiqi
Takhtar
Wardak
Yousuf
<br>
''INDEPENDENT:''
Anthis
Costa
Dimitirou
Elias
Gekas
Kouris
Leventis
Markos
Nikas
Nicolo
Panas
Petros
Rosi
Samaras
Stavrou
Thanos
Vega
<br>
''CODE NAMES:''
Ghost
Stranger
Fox
Snake
Razer
Jester
Nomad
Viper
Korneedler
 


<dd class="notedate">Posted on December 22, 2013 - 19:08 (UTC)
<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")


<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 25, 2015 - 08:28 (UTC)</dd>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dd class="note">While kylania listed available names, you can use any word you want. Available words for english can be found in configfile >> "RadioProtocolENG" >> "Words".
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 00:13, 14 May 2023

Hover & click on the images for description

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!".
See CfgIdentities - NameSounds for common values.
Note that any word from configfile >> "RadioProtocolENG" >> "Words" is accepted (e.g "veh_infantry_Sniper_s").
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:
_name = "Masood"; unit1 setNameSound _name; unit1 setName _name;

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")