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
Area that kills player?
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Area that kills player?

Make an area surrounding the bottom and name it "deathzone" Then add these with your info where necessary:

void OnStart()
{
AddEntityCollideCallback("Player", "deathzone", "killplayer_func", false, 1);
}


void killplayer_func(string &in asParent, string &in asChild, int alState)
{
SetPlayerHealth(0);
}
01-05-2012, 05:00 AM
Find


Messages In This Thread
Area that kills player? - by FreshKorruption - 01-05-2012, 04:55 AM
RE: Area that kills player? - by Statyk - 01-05-2012, 05:00 AM
RE: Area that kills player? - by FreshKorruption - 01-05-2012, 05:11 AM



Users browsing this thread: 1 Guest(s)