• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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