![]() |
Area that kills player? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Area that kills player? (/thread-12361.html) |
Area that kills player? - FreshKorruption - 01-05-2012 In one of my maps, I want it so when you hit the ground (which is also going to be an area) it kills you. Because the fall damage enough isn't going to finish you off. RE: Area that kills player? - Statyk - 01-05-2012 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); } RE: Area that kills player? - FreshKorruption - 01-05-2012 (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:Thanks once again. lol |