{"name":"commandChat","title":"commandChat","type":"command","url":"https://community.bistudio.com/wiki/commandChat","revid":376776,"updated":"2025-11-17T00:05:50Z","groups":["Radio and Chat","Sounds"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"global","effect":"local"},"description":"Types text to the command radio channel. The text will be visible only on the PC where command was executed. If you need the message to show on all computers, you have to execute it globally (see remoteExec). Use clearRadio to clear chat history\n\n> [!IMPORTANT]\n> The unit must have an assigned radio item (such as ***\"ItemRadio\"***) to see or transmit the messages. A radio item must have the property `simulation = \"ItemRadio\";` in its CfgWeapons config.","syntaxes":[{"syntax":"unit commandChat chatText","params":[{"name":"unit","type":"Object","description":"unit transmitting message","type_expr":"Object"},{"name":"chatText","type":"String","description":"message to transmit","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"chatText"}},{"syntax":"[side, identity] commandChat chatText","params":[{"name":"side","type":"Side","description":"side to which the message will be seen","type_expr":"Side"},{"name":"identity","type":"String","description":"class name of one of the identities in CfgHQIdentities. Possible identities in Arma 3 are:\n\n- \"Base\"\n- \"HQ\"\n- \"PAPA_BEAR\"\n- \"AirBase\"\n- \"BLU\"\n- \"OPF\"\n- \"IND\"\n- \"IND_G\"","type_expr":"String"},{"name":"chatText","type":"String","description":"message to transmit","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"[side, identity]"},"right":{"text":"chatText"}}],"examples":[{"code":["_soldierOne commandChat \"Show this text\";"]},{"code":["[playerSide, \"HQ\"] commandChat \"Do this! That's an order!\";"]},{"code":["driver vehicle player sideChat \"sideChat\";\ndriver vehicle player globalChat \"globalChat\";\ndriver vehicle player groupChat \"groupChat\";\nvehicle player vehicleChat \"vehicleChat\";\ndriver vehicle player commandChat \"commandChat\";\ndriver vehicle player customChat [1, \"customChat\"];\nsystemChat \"systemChat\";"]}],"see_also":["globalChat","groupChat","vehicleChat","sideChat","customChat","systemChat","commandRadio"]}