Mr H. 400 Posted April 28, 2019 Our dedi server is set up to be non persistent. The mission is closed whenever the last client disconnects. I was wondering if the mission EH: addMissionEventHandler ["PlayerDisconnected", { would still fire after the last user disconnects, allowing me to save some stuff in the server's profilenamespace when the last client disconnects. Share this post Link to post Share on other sites
gc8 970 Posted April 28, 2019 I'm using HandleDisconnect EH. addMissionEventHandler ["HandleDisconnect", { params ["_player", "_id", "_uid", "_name"]; _player call savePlayer; false }]; https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#HandleDisconnect I assume it works for last player! 1 Share this post Link to post Share on other sites
Tankbuster 1733 Posted April 28, 2019 20 minutes ago, gc8 said: I'm using HandleDisconnect EH. addMissionEventHandler ["HandleDisconnect", { params ["_player", "_id", "_uid", "_name"]; _player call savePlayer; false }]; https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#HandleDisconnect I assume it works for last player! It has always worked for me 2 1 Share this post Link to post Share on other sites
Mr H. 400 Posted April 28, 2019 I've been using HandleDisconnect to, (not tested yet on the dedi). What I can tell you is that it doesn't fire when testing in the editor in mp when leaving the mission to go back to the editor. I will try it on the dedi then. 1 Share this post Link to post Share on other sites
Mr H. 400 Posted April 30, 2019 After testing on the dedi it seems that the EH doesn't fire for the last player. Or maybe it does fire but since the server resets the mission after the last client disconnects it doesn't have time to save to profilenamespace Share this post Link to post Share on other sites
sarogahtyp 1105 Posted April 30, 2019 1 hour ago, Mr H. said: After testing on the dedi it seems that the EH doesn't fire for the last player. Or maybe it does fire but since the server resets the mission after the last client disconnects it doesn't have time to save to profilenamespace maybe you could save if the last player on server opens his game menu instead on disconnect. Share this post Link to post Share on other sites
Mr H. 400 Posted April 30, 2019 Yes that's a good idea! I'll try that. Share this post Link to post Share on other sites