From 70e356da94af74b94ea1b09b1d9717c21e163fc0 Mon Sep 17 00:00:00 2001 From: IT07 Date: Sat, 11 Jun 2016 23:14:18 +0200 Subject: [PATCH] New file --- .../sqf/notificationToClient.sqf | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 exile_vemf_reloaded/sqf/notificationToClient.sqf diff --git a/exile_vemf_reloaded/sqf/notificationToClient.sqf b/exile_vemf_reloaded/sqf/notificationToClient.sqf new file mode 100644 index 0000000..f57bca9 --- /dev/null +++ b/exile_vemf_reloaded/sqf/notificationToClient.sqf @@ -0,0 +1,25 @@ +/* + 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 +*/ + +_missionType = param [0, -1, [-1]]; +_title = param [1, "", [""]]; +_msgLine = param [2, "", [""]]; +_sendTo = param [3, [], [[]]]; +if (count _sendTo isEqualTo 0) then { _sendTo = allPlayers }; +{ + VEMFrMsgToClient = [[_missionType, _title, _msgLine], ""]; + (owner _x) publicVariableClient "VEMFrMsgToClient"; +} forEach _sendTo;