Frictional Games Forum (read-only)
Credits after dying? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Credits after dying? (/thread-16518.html)



Credits after dying? - Wrathborn771 - 06-26-2012

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


RE: Credits after dying? - EXAWOLT - 06-27-2012

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)
{

}


RE: Credits after dying? - Wrathborn771 - 06-27-2012

(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