Jump to content
  • 0

onPlayerDisconnect or HandleDisconnect wont fire


5nine

Question

Hey,

Im trying to get the server to do stuff (delete a marker basically) when a certain player disconnects.

either

_MEH_disconnect = addMissionEventHandler ["Handledisconnect",{
	if ((_this select 3) == plyrname) then {dcname = (_this select 3)}; diag_log format ["%1 disconnected",(_this select 3)];
	}];

or

["Stacked_EH", "onPlayerDisconnected", {dcname = _name; diag_log format ["%1 disconnected",_name];}] call BIS_fnc_addStackedEventHandler;

works. Its not even giving me an rpt error... Am i even close to using those eventhandlers correct? the documentation on the BIKI is not enough =(

 

loop that is waiting for variable change is 

waitUntil {_startTime + territory_time_limit > time or (getMarkerColor "TerritoryWars_dot" == "") or (dcname == plyrname); sleep 5;};

 

Or is there a way for a script running clientside to exitWith {deletemarker "blablabla"}; when he disconnects?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...