Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: monkey0506 on Wed 14/03/2012 23:48:35

Title: Re: Run command/script immediately after loading game via RestoreGameSlot
Post by: monkey0506 on Wed 14/03/2012 23:48:35
I'm sorry, but what the hell??

The forums aren't falling apart again are they?


Just in case this is visible, to answer the question in the subject line...

function on_event(EventType event, int data)
{
 if (event == eEventRestoreGame)
 {
   // DO COMMAND HERE
 }
}


Edit: I did not start this topic, but mine is the only post I see here. :-\
Title: Re: Run command/script immediately after loading game via RestoreGameSlot
Post by: BrightBulb on Thu 15/03/2012 00:19:07
Yep, I started this topic, but my post just vanished.

Anyways, thanks for the answer. That's what I was looking for.