Jump to content
Sign in to follow this  
alleycat

Catch when mission ends because of tickets reaching 0?

Recommended Posts

I recently discovered that when I use a ticked system in my mission and one side's tickets reach zero, it ends the mission, skipping my custom mission end stuff. How can I detect when the tickets reach 0 in time before the mission ends? I have looked at some bis functions but nothing useful so far.

Share this post


Link to post
Share on other sites

https://community.bistudio.com/wiki/addMissionEventHandler

_id = addMissionEventHandler ["Ended",{ diag_log text "START END";_this execVM "server\end.sqf"; }];

This only partially works. "START END" does fire, but anything in the end script does not.

 

I am looking for a way to either stop the ticket bleed to end the mission so I can end it with my own scripts. Or a way to run all the scripts I want when it ends.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×