Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to end custom story as a Demo?
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#10
RE: How to end custom story as a Demo?

Make a script area where you want the player to stop playing your map
and use this code

void OnStart()
{
AddEntityCollideCallback("Player", "script_credits", "func_credits", true, 1);
}

void func_credits(string &in asParent, string &in asChild, int alState)
{
StartCredits("01_amb_darkness.ogg", false, "MainCredits", 1);
}
change script_credits to the name of the area you're gonna create.

[Image: 44917299.jpg]Dubstep <3
07-14-2011, 03:11 AM
Find


Messages In This Thread
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 03:11 AM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 12:30 PM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 05:54 PM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 07:38 PM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 09:20 PM
RE: How to end custom story as a Demo? - by xtron - 07-15-2011, 12:20 AM
RE: How to end custom story as a Demo? - by xtron - 07-15-2011, 01:00 AM
RE: How to end custom story as a Demo? - by xtron - 07-16-2011, 10:20 PM



Users browsing this thread: 1 Guest(s)