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?
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#3
RE: Area that kills player?

(01-05-2012, 05:00 AM)Statyk Wrote: 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);
}
Thanks once again. lol

Custom Stories

-BrastaSauce

01-05-2012, 05:11 AM
Website 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)