Frictional Games Forum (read-only)

Full Version: Credits after dying?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Smile
I was just wondering how you could make the credits pop up in the end of a custom story, when getting killed by a monster?
And it would be fantastic if someone could provide me with a script that will trigger a enemy to become active when reading a note Smile

Thanks
-Wrath
there are many ways to do this, one script like
AddEntityCollideCallback("Player", "monster", "collidemonster", true, 1);
void collidemonster(string &in asParent, string &in asChild, int alState)
{
StartCredits("29_amb_end_intense.ogg", true, "Ending", "MainCredits", 7);
}
like that, or you can youse the "if()" scripts that will me called when healt gone below 50, like:
GetPlayerHealt();
if(script)
{

}
(06-27-2012, 12:00 AM)EXAWOLT Wrote: [ -> ]there are many ways to do this, one script like
AddEntityCollideCallback("Player", "monster", "collidemonster", true, 1);
void collidemonster(string &in asParent, string &in asChild, int alState)
{
StartCredits("29_amb_end_intense.ogg", true, "Ending", "MainCredits", 7);
}
like that, or you can youse the "if()" scripts that will me called when healt gone below 50, like:
GetPlayerHealt();
if(script)
{

}
Hmm ok, thanks for the reply Wink