Inkko
Valued Member!
I'm having an issue with broadcasting messages server side to clients.
I have the addPublicVariableEventHandler setup client side in publicEH.sqf and have that moved into my mission. Server side when I broadcast the publicvariable nothing happens. It is as if the publicVariable isn't actually being broadcast. I'm trying to make messages that look nicer for lets say AI missions for when one of those pop up.
As an example mission side i have this for the EH:
Then serverside when a mission pops up it normally broadcasts with a titletext RE but I replaced that with the message such as:
Does anyone happen to know where I am going wrong?
I have the addPublicVariableEventHandler setup client side in publicEH.sqf and have that moved into my mission. Server side when I broadcast the publicvariable nothing happens. It is as if the publicVariable isn't actually being broadcast. I'm trying to make messages that look nicer for lets say AI missions for when one of those pop up.
As an example mission side i have this for the EH:
Code:
"CustomMessage" addPublicVariableEventHandler {
_message = _this select 1;
[_message,[safezoneX + 0.01 * safezoneW,2.0],[safezoneY + 0.01 * safezoneH,0.3],30,0.5] spawn BIS_fnc_dynamicText;
};
Then serverside when a mission pops up it normally broadcasts with a titletext RE but I replaced that with the message such as:
Code:
CustomMessage = "AI mission started......";publicVariable "CustomMessage";
Does anyone happen to know where I am going wrong?