{"name":"BIS_fnc_moduleChat","title":"BIS fnc moduleChat","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_moduleChat","revid":328357,"updated":"2022-07-13T16:00:47Z","groups":["Modules"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"effect":"local"},"description":"Make a list of units use any *chat command (groupChat, vehicleChat, sideChat, commandChat, globalChat).","syntaxes":[{"syntax":"[logic, units, isActivated] call BIS_fnc_moduleChat","params":[{"name":"logic","description":"Object the logic. Possible setVariable parameters:\n\n- \"Text\": String - the text to be sent\n- \"Channel\": String - (Optional, default \"0\") a number **as a string**:\n  - \"0\": groupChat\n  - \"1\": vehicleChat\n  - \"2\": sideChat\n  - \"3\": commandChat\n  - \"4\": globalChat","type_expr":"Object","text":"logic: Object the logic. Possible setVariable parameters:\n\n- \"Text\": String - the text to be sent\n- \"Channel\": String - (Optional, default \"0\") a number **as a string**:\n  - \"0\": groupChat\n  - \"1\": vehicleChat\n  - \"2\": sideChat\n  - \"3\": commandChat\n  - \"4\": globalChat"},{"name":"units","type":"Array of Objects","description":"list of chatting units","type_expr":"Array<Object>"},{"name":"isActivated","type":"Boolean","optional":true,"default":"true","description":"if true, the module is activated and chat is send. false disables the module","type_expr":"Boolean","text":"isActivated: Boolean - (Optional, default true) if true, the module is activated and chat is send. false disables the module"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when done, even if isActivated equals false","text":"Boolean - true when done, even if *isActivated* equals false"}}],"examples":[{"code":["myLogic setVariable [\"Channel\", \"2\"];\nmyLogic setVariable [\"Text\", \"Hello everyone, this is side chat!\"];\n[myLogic, [player], true] call BIS_fnc_moduleChat;"]}],"see_also":["groupChat","vehicleChat","sideChat","commandChat","globalChat","systemChat"]}