setNameSound: Difference between revisions
Jump to navigation
Jump to search
m (added default value (v1.08)) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(56 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 1.02 | |||
| | |arg= global | ||
| | |eff= local | ||
| | |gr1= Unit Identity | ||
| | |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 instead of "Two, hold fire!", one can have "Miller, hold fire!". | |||
{{Feature|informative| | |||
| | See {{Link|Arma 3: CfgIdentities#NameSounds}} for common values.<br> | ||
Note that any word from <sqf inline>configFile >> "RadioProtocolENG" >> "Words"</sqf> is accepted (e.g {{hl|"veh_infantry_Sniper_s"}}). | |||
}} | }} | ||
|s1= person [[setNameSound]] name | |||
|p1= person: [[Object]] | |||
|p2= name: [[String]] | |||
|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]] | |||
}} | |||
{{Note | |||
|user= Lou Montana | |||
|timestamp= 201312221908 | |||
|text= setting an incorrect value like "0" or "randomString" will remove the callsign (" ''/* 2, */'' fall back") | |||
}} |
Latest revision as of 10:01, 19 April 2024
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!".
- 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 Dec 22, 2013 - 19:08 (UTC)
- setting an incorrect value like "0" or "randomString" will remove the callsign (" /* 2, */ fall back")