{"name":"commandChat","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit transmitting message","types":["Object"],"since":null,"text":"unit: Object - unit transmitting message"},{"name":"chatText","type":"String","optional":false,"default":null,"description":"message to transmit","types":["String"],"since":null,"text":"chatText: String - message to transmit"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"chatText","types":["String"]}},{"syntax":"[side, identity] commandChat chatText","since":null,"effect":null,"exec":null,"params":[{"name":"side","type":"Side","optional":false,"default":null,"description":"side to which the message will be seen","types":["Side"],"since":null,"text":"side: Side - side to which the message will be seen"},{"name":"identity","type":"String","optional":false,"default":null,"description":"class name of one of the identities in CfgHQIdentities. Possible identities in Arma 3 are:\n- \"Base\"\n- \"HQ\"\n- \"PAPA_BEAR\"\n- \"AirBase\"\n- \"BLU\"\n- \"OPF\"\n- \"IND\"\n- \"IND_G\"","types":["String"],"since":null,"text":"identity: String - class name of one of the identities in CfgHQIdentities. Possible identities in Arma 3 are:\n- \"Base\"\n- \"HQ\"\n- \"PAPA_BEAR\"\n- \"AirBase\"\n- \"BLU\"\n- \"OPF\"\n- \"IND\"\n- \"IND_G\""},{"name":"chatText","type":"String","optional":false,"default":null,"description":"message to transmit","types":["String"],"since":null,"text":"chatText: String - message to transmit"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"[side, identity]","types":["Array"]},"right":{"text":"chatText","types":["String"]}}],"examples":[{"text":"```sqf\n_soldierOne commandChat \"Show this text\";\n```","code":["_soldierOne commandChat \"Show this text\";"]},{"text":"```sqf\n[playerSide, \"HQ\"] commandChat \"Do this! That's an order!\";\n```","code":["[playerSide, \"HQ\"] commandChat \"Do this! That's an order!\";"]},{"text":"```sqf\ndriver 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\";\n```","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\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["globalChat","groupChat","vehicleChat","sideChat","customChat","systemChat","commandRadio"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Radio and Chat","Command Group: Sounds","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}