• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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