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
Script Help The Capture Scene - Amnesia
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#4
RE: The Capture Scene - Amnesia

(08-30-2012, 07:07 AM)andyrockin123 Wrote: Basic entity collide callback that adds the checkpoint based off what senor Nemet said:


void OnStart()
{
AddEntityCollideCallback("Player", "Name_of_Area", "checkpoint", true, 1);
}


void checkpoint(string &in asParent, string &in asChild, int alState)
{
CheckPoint("", "Name_of_Start_Pos", "PlayerDeath", "", "");
}


void PlayerDeath(string &in asName, int alCount)
{
ChangeMap("Name_of_Map.map", "Name_of_Start_Pos", "", "");
}


You can change the type of callback, but be sure to change the callback syntax for "checkpoint" as well.

Hope that helped.
This should work. But I thought I'd let the lad figure it out. Since that's the way you learn how to script.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
08-30-2012, 07:59 AM
Website Find


Messages In This Thread
The Capture Scene - Amnesia - by Melvin - 08-29-2012, 05:20 PM
RE: The capture scene - by Robby - 08-29-2012, 05:28 PM
RE: The Capture Scene - Amnesia - by Adny - 08-30-2012, 07:07 AM
RE: The Capture Scene - Amnesia - by Robby - 08-30-2012, 07:59 AM



Users browsing this thread: 1 Guest(s)