Frictional Games Forum (read-only)

Full Version: How to end a custom story
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

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);
}