Kill-Player Area. - 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: Kill-Player Area. (/thread-16402.html) |
Kill-Player Area. - MaZiCUT - 06-22-2012 void OnStart() { AddEntityPlayerCollideCallback blablabla player killarea killscript } void KillScript() { I don't know how to make this part :] } Please help me out I want the player to die when he collides with a special area. RE: Kill-Player Area. - Cruzore - 06-22-2012 If you want to get the player to die often, use the below script. If he should die only once, change under AddEntityCollideCallback the false to true. void OnStart() { AddEntityCollideCallback("Killareanamehere", "Player", "KillScript", false, 1); } void KillScript(string &in asParent, string &in asChild, int alState) { SetPlayerHealth(0.0f); } |