Death areas / out of bounds - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Death areas / out of bounds (/thread-4589.html) |
Death areas / out of bounds - mitchell - 09-19-2010 Hi everyone, in my level ive got a massive stream. (which you currently just fall through forever) is it possible to have areas which will kills you. the only example is from the main game is when you die from falling off an edge. thanks RE: Death areas / out of bounds - Pandemoneus - 09-20-2010 Yes, it is possible. Create a script area and call it WhateverYouLike. Code: void OnStart() //player dies, number has to be 100+ to kill the player when he wasn't damaged yet //1000 = Amount of Damage, "BloodSplat" = Animation played on the screen when getting damage //first true = make the player spin when he gets damaged //second true = makes it lethal damage so you actually die from it [edit] The developers actually used AddPlayerHealth(-200); Up to you how you want to do it. |