{"name":"setNameSound","operator":null,"title":"setNameSound","type":"command","url":"https://community.bistudio.com/wiki/setNameSound","revid":363769,"updated":"2024-04-19T09:01:30Z","groups":["Unit Identity"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.02"}],"since":{"game":"arma3","name":"Arma 3","version":"1.02"},"arma3_since":"1.02","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Sets the nameSound of a person. By default, when giving orders, the units are addressed by their number.\nWhen 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!\".\n\n> [!NOTE]\n> See Arma 3: CfgIdentities#NameSounds for common values.\n>\n> Note that any word from `configFile >> \"RadioProtocolENG\" >> \"Words\"` is accepted (e.g `\"veh_infantry_Sniper_s\"`).","syntaxes":[{"syntax":"person setNameSound name","since":null,"effect":null,"exec":null,"params":[{"name":"person","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"person: Object"},{"name":"name","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"name: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"person","types":["Object"]},"right":{"text":"name","types":["String"]}}],"examples":[{"text":"```sqf\nunit1 setNameSound \"dixon\";\n```","code":["unit1 setNameSound \"dixon\";"]},{"text":"```sqf\nunit1 setNameSound \"\"; // will reset to default behaviour\n```","code":["unit1 setNameSound \"\"; // will reset to default behaviour"]},{"text":"```sqf\n_name = \"Masood\";\nunit1 setNameSound _name;\nunit1 setName _name;\n```","code":["_name = \"Masood\";\nunit1 setNameSound _name;\nunit1 setName _name;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["nameSound","name","setName","setIdentity"],"notes":[{"user":"Lou Montana","date":"2013-12-22T19:08:00Z","text":"setting an incorrect value like \"0\" or \"randomString\" will remove the callsign (\" */* 2, */* fall back\")"}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Identity","Introduced with Arma 3 version 1.02","Scripting Commands","Scripting Commands: Local Effect"]}