Is it possible to execute code just before game end ?

Status
Not open for further replies.
Hello,

I am currently executing a trigger on the 'Player X leaves' events in order to execute it at the end of the game & not too often (because the trigger writes in a local file up to ~5000 lines of text).

However I noticed that it doesn't not execute in the following cases:
- Last player leaves (it seems to be the same for solo, local network & Battle.net)
- Crash

I don't care about crashes. However the other case is very boring for me. Indeed this code is here to log everything that happens in a file because I am debugging desync issues. So I'd really need to execute it just after any desync.

Do you know if it is possible to execute code just before game end ?
Or maybe another idea I didn't think of ?
 
Status
Not open for further replies.
Top