![]() |
Script for falling tree/knock player out? - 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: Script for falling tree/knock player out? (/thread-22373.html) Pages:
1
2
|
RE: Script for falling tree/knock player out? - PutraenusAlivius - 08-10-2013 (08-10-2013, 01:26 PM)goregrinder99 Wrote:(08-10-2013, 01:00 PM)JustAnotherPlayer Wrote:(08-10-2013, 12:36 PM)Rapsis Wrote: Don't you think a falling tree would kill a person instead of just knocking him out? Is it when the Player breathes and gasps or something? RE: Script for falling tree/knock player out? - CarnivorousJelly - 08-10-2013 Go in redist/sounds/react They usually use "react_pant" and "react_breath" for injuries in ATDD. And, as long as you leave the last bool in your damage script as false, the player won't die: PHP Code: GivePlayerDamage(float afAmount, "string& asType", bool abSpinHead, bool abLethal); float afAmount - how much damage the player takes string& asType - the effect, BloodSplat, Claws, or Slash bool abSpinHead - does the player's head spin from being hit bool abLethal - can the damage kill the player |