Jump to content
Sign in to follow this  
Kunsa

OnMissionLoaded

Recommended Posts

been a while since i have played around with arma, and was trying to work out how and where you check when the mission has loaded. I want to run some code but only when a mission has been loaded from a savegame, not when the mission is started for the first time... thx in advance.

Share this post


Link to post
Share on other sites

Since a savegame stores many variable, among which is time passed (I'd assume), run this at the start of the mission:

_time = time;

Do determine, whether or not it's a savegame, use this:

if (_time > 0) then { _savegame = true; } else { _savegame = false; };

Didn't fully answer your question, as I'm short on time, but you get the idea, hopefully ;)

Share this post


Link to post
Share on other sites

Thanks for both of the replies. The event handler was exactly what i was looking for. :)

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  

×