{"name":"groupRadio","title":"groupRadio","type":"command","url":"https://community.bistudio.com/wiki/groupRadio","revid":363908,"updated":"2024-04-24T22:08:47Z","groups":["Radio and Chat","Sounds"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"global","effect":"local"},"description":"Sends the audio message to the group radio channel. The message is defined in CfgRadio in the description.ext file or config radio protocol.\n\n> [!IMPORTANT]\n> The unit must have an assigned radio item (such as ***\"ItemRadio\"***) to see or transmit the messages.\n> A radio item must have the property `simulation = \"ItemRadio\";` in its CfgWeapons config.\n\n> [!NOTE]\n> When the transmitting unit gets killed, the transmission is interrupted. However when the receiving unit gets killed, the transmission continues to play.","syntaxes":[{"syntax":"unit groupRadio radioName","params":[{"name":"unit","type":"Object","description":"unit to transmit","type_expr":"Object"},{"name":"radioName","type":"String","description":"class name from `CfgRadio`","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"radioName"}}],"examples":[{"code":["_soldierOne groupRadio \"messageOne\";"]},{"code":["player groupRadio (configName selectRandom (\"true\" configClasses (configFile >> \"CfgRadio\")));"]}],"multiplayer":"If you need the transmission to play on all computers, you have to execute it globally (see remoteExec).","see_also":["sideRadio","groupChat","customRadio","vehicleRadio","globalRadio","directSay","commandRadio"],"notes":[{"user":"Killzone_Kid","date":"2016-12-03T21:34:00Z","text":"To transmit user custom sounds (see Multiplayer Custom Sounds Tutorial), prefix the full filename including file extension with `#`.\nFor example if there is a custom user sound file called `MySound.ogg`, to play it on the radio use:\n\n```sqf\nplayer groupRadio \"#MySound.ogg\";\n```"}]}