a3_vemf_reloaded/exile_vemf_reloaded/sqf/systemChatToClient.sqf

18 lines
400 B
Plaintext
Raw Normal View History

2016-06-11 21:14:26 +00:00
/*
Author: IT07
Params:
_this select 0: FORMATTED STRING - line to broadcast
_this select 1: ARRAY - specific clients to (ONLY) send line to
Returns:
nothing
*/
2016-06-17 10:27:05 +00:00
params [["_line","",[""]], ["_sendTo",[],[[]]]];
2016-06-11 21:14:26 +00:00
if (_sendTo isEqualTo []) then { _sendTo = allPlayers };
{
VEMFrMsgToClient = [_line, "sys"];
(owner _x) publicVariableClient "VEMFrMsgToClient";
} forEach _sendTo;