5nine Posted October 8, 2015 Report Share Posted October 8, 2015 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 More sharing options...
Question
5nine
Hey,
Im trying to get the server to do stuff (delete a marker basically) when a certain player disconnects.
either
or
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
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now