2016-04-11 14:11:30 +00:00
|
|
|
if (hasInterface) then
|
|
|
|
{
|
|
|
|
uiNamespace setVariable ["RscDisplayVEMFrClientMsgQueue", []];
|
|
|
|
uiNamespace setVariable ["RscDisplayVEMFrClient", displayNull];
|
|
|
|
// custom addPublicVariableEventHandler. Those bloody BE filters.....
|
|
|
|
[] spawn
|
|
|
|
{
|
2016-04-19 14:19:33 +00:00
|
|
|
_handleMessage =
|
2016-04-11 14:11:30 +00:00
|
|
|
{
|
2016-04-19 14:19:33 +00:00
|
|
|
_data = _this;
|
|
|
|
_msg = param [0, "", [[],format[""]]];
|
|
|
|
_mode = param [1, "", [""]];
|
|
|
|
if (_mode isEqualTo "sys") then
|
|
|
|
{
|
|
|
|
systemChat _msg;
|
|
|
|
} else
|
2016-04-11 14:11:30 +00:00
|
|
|
{
|
2016-04-19 14:19:33 +00:00
|
|
|
[_msg select 0, _msg select 1] ExecVM "VEMFr_client\sqf\handleMessage.sqf";
|
2016-04-11 14:11:30 +00:00
|
|
|
};
|
|
|
|
};
|
2016-04-19 14:19:33 +00:00
|
|
|
while {true} do
|
|
|
|
{
|
|
|
|
waitUntil { if isNil"VEMFrClientMsg" then { uiSleep 0.05; false } else { true }};
|
|
|
|
_data = VEMFrClientMsg;
|
|
|
|
VEMFrClientMsg = nil;
|
|
|
|
_data spawn _handleMessage;
|
|
|
|
};
|
2016-04-11 14:11:30 +00:00
|
|
|
};
|
|
|
|
};
|