setNameSound: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 23: | Line 23: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>unit1 setNameSound "dixon";</sqf> | ||
|x2= < | |x2= <sqf>unit1 setNameSound ""; // will reset to default behaviour</sqf> | ||
|x3= < | |x3= <sqf>_name = "Masood"; | ||
unit1 setNameSound _name; | unit1 setNameSound _name; | ||
unit1 setName _name;</ | unit1 setName _name;</sqf> | ||
|seealso= [[nameSound]] [[name]] [[setName]] [[setIdentity]] | |seealso= [[nameSound]] [[name]] [[setName]] [[setIdentity]] |
Revision as of 10:24, 13 May 2022
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 December 22, 2013 - 19:08 (UTC)
- Lou Montana
- setting an incorrect value like "0" or "randomString" will remove the callsign (" /* 2, */ fall back")