Frictional Games Forum (read-only)
How to end a custom story - 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: How to end a custom story (/thread-10856.html)



How to end a custom story - lolopon - 10-19-2011

Hi!

Im wondering how you make the credit start rolling and ending a custom story when i enter a door.
Im still very "noob" at this custom story making and can't figure this one out.

Thanks in advance



RE: How to end a custom story - flamez3 - 10-20-2011


This was hard for me aswell. I found a way around this. Instead of it actually making it start rolling once I interact with the door. I made an area script around the door, so when i stood on it, it would load the credits. Use this


void OnStart()

{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "Load" , true , 1);
}

void Load(string &in asParent, string &in asChild, int alState)

{
StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);
}