Jump to content
  • 0

onPlayerDisconnect or HandleDisconnect wont fire



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


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


["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?

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Advertisement
  • Supporters
  • Discord

  • Create New...