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
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#3
RE: The Capture Scene - Amnesia

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.

I rate it 3 memes.
08-30-2012, 07:07 AM
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)