Frictional Games Forum (read-only)

Full Version: Immediate Actions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all!

So I am curious. Say I want to make the player laying on the ground, fade in, wait a while, then a monster comes bashing through the door. All this happens, when the player enters a new map. Do I just set the "PlayerStartArea" in another "ScriptArea" so that the second they enter the map, they trigger the area, and all this happens?

Or is there another way?
you could do that, and I think it would work Smile

But I thnk it would be a lot easier to just call the function directly from void OnStart()

Wink
If you don't want all that to start OnStart and want different area for your intro, just put into OnStart:

Code:
OnStart()
{
AddTimer("", 0, "intro")
}

And below it

Code:
void intro(string &in asTimer)
{
// Put your intro stuff here :)!
}
OnEnter() is more appropriate for when the user enters the map.
I think he wants a startup script, which would be only run once, judging by the fact that he wants a monster to smash through the door. If you do want it to be repeated, you would have to put it in void OnEnter() and you would have to use ResetProp to fix the door, and return the monster to it's original position.

Also, Elven, instead of
Code:
void OnStart()
{
AddTimer("" , 0 , "intro");
}
void intro(string &in asTimer)
{

}

you can just use

Code:
void OnStart()
{
intro();
}

void intro(){

}

Unless of course you want a delay between the OnStart() and the WakeUp Function.
Woooh, I should have known Big Grin! I am now smarter, thx for telling me Big Grin!
Oh! Hm, I used the timer, but I am gona try this Big Grin

Either way, its all solved.