Frictional Games Forum (read-only)
[LVL ED] Ending - 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: [LVL ED] Ending (/thread-25237.html)



Ending - MacKetchup - 05-07-2014

How do i end my story by clicking on the hub door?

Thanks on beforehand

MacKetchup


RE: Ending - DnALANGE - 05-07-2014

Try this :
Put this on voidOnStart
SetEntityPlayerInteractCallback("YOURLEVELDOOR", "GOTOTHECREDITS", false);
-
This is the script :
PHP Code:
void GOTOTHECREDITS(string &in asEntity)
{
StartCredits("YOURMUSICFILEHERE.ogg"false"Ending""EndMyStory"111);
SetPlayerActive(false); //Just so people cant move anymore. 

---
PHP Code:
                 
<CATEGORY Name="Ending">
<
Entry Name="EndMyStory">YOURTEXTHERE</Entry>
</
CATEGORY>
</
LANGUAGE



RE: Ending - MacKetchup - 05-07-2014

Wow. That was fast. Thanks Big Grin


RE: Ending - DnALANGE - 05-07-2014

Your welcome.
Let me\us know if this works for you.


RE: Ending - MacKetchup - 05-08-2014

Since im chased by a zombie. How do i get the chasing sound to stop and get the outro music to play?


RE: Ending - PutraenusAlivius - 05-08-2014

(05-08-2014, 02:39 PM)MacKetchup Wrote: Since im chased by a zombie. How do i get the chasing sound to stop and get the outro music to play?

Deactivate the "zombie" and then you should be done.