setNameSound: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Text replacement - ";[ ]+ " to "; ") |
||
Line 26: | Line 26: | ||
|x2= <code>unit1 [[setNameSound]] ""; // will reset to default behaviour</code> | |x2= <code>unit1 [[setNameSound]] ""; // will reset to default behaviour</code> | ||
|x3= <code>_name = "Masood"; | |x3= <code>_name = "Masood"; | ||
unit1 [[setNameSound]] _name; | unit1 [[setNameSound]] _name; | ||
unit1 [[setName]] _name;</code> | unit1 [[setName]] _name;</code> | ||
Revision as of 00:55, 8 August 2021
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:
_name = "Masood"; unit1 setNameSound _name; unit1 setName _name;
Additional Information
- See also:
- nameSoundnamesetNamesetIdentity
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")