onPlayerDisconnect or HandleDisconnect wont fire

1 post in this topic


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

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

  • Recently Browsing   0 members

    No registered users viewing this page.