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
Respawn To Begin the Sence again
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#8
RE: Respawn To Begin the Sence again

For example. If at the beginning of the map there is script called:

OnStart()
{
AddEntityCollideCallback("Player", "deadarea", "deadarea", true, 0);
}

And you die in that dead area because of some reason, then set checkpoint before that area and add script inside check point respawn:

AddEntityCollideCallback("Player", "deadarea", "deadarea", true, 0);

BAsically, code would look like that:

OnStart()
{
AddEntityCollideCallback("Player", "deadarea", "deadarea", true, 0);
CheckPoint ("checkpoint1", "PlayerStartArea_1", "respawn1", "", "");

}

void deadarea(string &in asParent, string &in asChild, int alState)
{
//Do whatever you want to do there!
}

void respawn1(string &in asName, int alCount)
{
AddEntityCollideCallback("Player", "deadarea", "deadarea", true, 0);
}

The Interrogation
Chapter 1

My tutorials
10-06-2011, 07:41 PM
Find


Messages In This Thread
RE: Respawn To Begin the Sence again - by A Luna - 10-05-2011, 08:19 PM
RE: Respawn To Begin the Sence again - by MrBigzy - 10-06-2011, 11:27 AM
RE: Respawn To Begin the Sence again - by Elven - 10-06-2011, 03:18 PM
RE: Respawn To Begin the Sence again - by MrBigzy - 10-06-2011, 06:52 PM
RE: Respawn To Begin the Sence again - by Elven - 10-06-2011, 07:41 PM



Users browsing this thread: 1 Guest(s)