Frictional Games Forum (read-only)

Full Version: Ending
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i end my story by clicking on the hub door?

Thanks on beforehand

MacKetchup
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
Wow. That was fast. Thanks Big Grin
Your welcome.
Let me\us know if this works for you.
Since im chased by a zombie. How do i get the chasing sound to stop and get the outro music to play?
(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.