a3_vemf_reloaded/exile_vemf_reloaded/sqf/notificationToClient.sqf

23 lines
655 B
Plaintext
Raw Normal View History

2016-06-11 21:14:18 +00:00
/*
Author: IT07
Description:
will put mission notification on either all screens or just on given
Params:
_this select 0: SCALAR - mission type (AI mode)
_this select 1: STRING - notification title
_this select 2: STRING - notification message
_this select 3: ARRAY (optional) - specific clients to (ONLY) send notification to
Returns:
nothing
*/
2016-06-17 10:27:05 +00:00
params [["_missionType",-1,[-1]], ["_title","",[""]], ["_msgLine","",[""]], ["_sendTo",[],[[]]]];
2016-06-11 21:14:18 +00:00
if (count _sendTo isEqualTo 0) then { _sendTo = allPlayers };
{
VEMFrMsgToClient = [[_missionType, _title, _msgLine], ""];
(owner _x) publicVariableClient "VEMFrMsgToClient";
} forEach _sendTo;