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 in a cell.
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: Respawn in a cell.

You can do this with checkpoints. But, be completely sure that the grunt kills the player or it will respawn in the cell without a reason.

So:

Put the Start area in the desired place-now, do this:

void OnStart()

{

AddEntityCollideCallback(“Player”, “ScriptArea_1”, “Restart”, true, 1);

}



void Restart(string &in asParent, string &in asChild, int alState)

{

CheckPoint (“FirstCheckpoint”, “PlayerStartArea_1”, “Happening”, “DeathCategory”, “Deathtext”);

}



void Happening(string &in asName, int alCount)

{

/Stuff you want to happen after you die/

}


<LANGUAGE>

<CATEGORY Name=“DeathCategory”>

<Entry Name=“Deathtext”>Text you want in the black screen after you die </Entry>

</CATEGORY>

</LANGUAGE>

Aaand you're done Wink

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-23-2012, 06:30 PM
Find


Messages In This Thread
Respawn in a cell. - by 4WalledKid - 10-23-2012, 06:09 PM
RE: Respawn in a cell. - by Robby - 10-23-2012, 06:14 PM
RE: Respawn in a cell. - by 4WalledKid - 10-23-2012, 06:16 PM
RE: Respawn in a cell. - by Robby - 10-23-2012, 06:27 PM
RE: Respawn in a cell. - by The chaser - 10-23-2012, 06:30 PM
RE: Respawn in a cell. - by 4WalledKid - 10-23-2012, 06:45 PM



Users browsing this thread: 1 Guest(s)