setNameSound: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(59 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.04|= Game version
|arg= global
____________________________________________________________________________________________


| Sets the nameSound of a person. |= Description
|eff= local
____________________________________________________________________________________________


| person '''setNameSound''' name |= Syntax
|gr1= Unit Identity


|p1= person: [[Object]] |= Parameter 1
|descr= Sets the [[nameSound]] of a person. By default, when giving orders, the units are addressed by their number.
|p2= name: [[String]] |= Parameter 2
When nameSound is set, it will be used instead to address the unit. For example instead of "Two, hold fire!", one can have "Miller, hold fire!".
| [[Nothing]] |= RETURNVALUE


 
{{Feature|informative|
|x1= <code>unit1 setNameSound "dixon";
See {{Link|Arma 3: CfgIdentities#NameSounds}} for common values.<br>
</code>|= EXAMPLE1
Note that any word from <sqf inline>configFile >> "RadioProtocolENG" >> "Words"</sqf> is accepted (e.g {{hl|"veh_infantry_Sniper_s"}}).
 
____________________________________________________________________________________________
 
|  |= SEEALSO
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
|s1= person [[setNameSound]] name
<dl class='command_description'>
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on September 19, 2013
|p1= person: [[Object]]
<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:
|p2= name: [[String]]


''Default:''
|r1= [[Nothing]]
Armstrong
Nichols
Tanny
Frost
Lacey
Larkin
Kerry
Jackson
Miller
McKendrick
Levine
Reynolds


''BLUFOR:''
|x1= <sqf>unit1 setNameSound "dixon";</sqf>
Adams
Bennett
Campbell
Dixon
Everett
Franklin
Givens
Hawkins
Lopez
Martinez
O'Connor
Ryan
Patterson
Sykes
Taylor
Walker


''OPFOR:''
|x2= <sqf>unit1 setNameSound ""; // will reset to default behaviour</sqf>
Amin
Masood
Fahim
Habibi
Kushan
Jawadi
Nazari
Siddiqi
Takhtar
Wardak
Yousuf


''INDEPENDENT:''
|x3= <sqf>
Anthis
_name = "Masood";
Costa
unit1 setNameSound _name;
Dimitirou
unit1 setName _name;
Elias
</sqf>
Gekas
Kouris
Leventis
Markos
Nikas
Nicolo
Panas
Petros
Rosi
Samaras
Stavrou
Thanos
Vega


''CODE NAMES:''
|seealso= [[nameSound]] [[name]] [[setName]] [[setIdentity]]
Ghost
}}
Stranger
Fox
Snake
Razer
Jester
Nomad
Viper
Korneedler


<!-- Note Section END -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
{{Note
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
|user= Lou Montana
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|timestamp= 201312221908
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|text= setting an incorrect value like "0" or "randomString" will remove the callsign (" ''/* 2, */'' fall back")
}}

Latest revision as of 11:01, 19 April 2024

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 instead of "Two, hold fire!", one can have "Miller, hold fire!".
See Arma 3: 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


Lou Montana - c
Posted on Dec 22, 2013 - 19:08 (UTC)
setting an incorrect value like "0" or "randomString" will remove the callsign (" /* 2, */ fall back")