Legacy GM [SOLVED] Forced game closing detection

marasovec

Member
Can I detect when the game gets closed with [X] or ALT+F4?
I have a server that is sending its info via HTTP requests and I want to send a one last request when the game closes.
 
Last edited:

FrostyCat

Redemption Seeker
Can I detect when the game gets closed with [X] or ALT+F4?
I have a server that is sending its info via HTTP requests and I want to send a one last request when the game closes.
Be warned that the Game End event only captures soft quits that can be responded to, i.e. game_end(), X button and Alt+F4 on Windows. It will NOT respond to hard quits such as kills from Task Manager, the command line or the OS in general (especially on HTML5 and mobile). Your final request must not be a linchpin by design.
 
Top