Re: Run command/script immediately after loading game via RestoreGameSlot

Started by monkey0506, Wed 14/03/2012 23:48:35

Previous topic - Next topic

monkey0506

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...

Code: ags
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. :-\

BrightBulb

Yep, I started this topic, but my post just vanished.

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

SMF spam blocked by CleanTalk