Check when a player Died? - 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: Check when a player Died? (/thread-7931.html) |
Check when a player Died? - laser50 - 05-10-2011 Hey guys. I had this great idea in mind but i've come across a problem on making it. In fact, I wanna make a monster kill a player and then make him "Wake Up" How can i make this? RE: Check when a player Died? - Kyle - 05-10-2011 How about you check to see if the player has the health of 10 or lower and if it's true, fade out the screen, teleport the player, fade back in, and then play a coughing or breathing sound and reduce sanity to 20 for "sleepy" effects. RE: Check when a player Died? - laser50 - 05-10-2011 Any way to check health? RE: Check when a player Died? - Apjjm - 05-10-2011 (05-10-2011, 09:30 PM)laser50 Wrote: Any way to check health? Code: GetPlayerHealth(); RE: Check when a player Died? - Kyle - 05-10-2011 float GetPlayerHealth(); For example: Code: void OnStart() RE: Check when a player Died? - Viperdream - 05-10-2011 Maybe use a checkpoint? I don't know if this would work but: Code: void Check1(string &in asName, int alCount) RE: Check when a player Died? - Russ Money - 05-11-2011 Thought of a work around, as that's what I'm good at, haha. But, just as suggested, make a check point. The check point spawns the player in a blank spot outside your map, somewhere with just a floor would be alright. Then once the player dies and is sent to that check point, have an area script to teleport the player where you want. |