Item triggering a script - 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: Item triggering a script (/thread-47998.html) Pages:
1
2
|
RE: Item triggering a script - Mudbill - 06-02-2016 You're missing some critical parts of your script there boy. Lemme patch it up for ya. PHP Code: void DaggerLoopCheck(string &in a) RE: Item triggering a script - Daemian - 06-03-2016 whatever, I think he can totally fill in the blanks. RE: Item triggering a script - Darkfire - 06-05-2016 Thanks for help, everything works. I set player's health to 80 and for some reason it doesn't regenerate, so no need for a loop. I wanted the knife to damage the player, but when in the model editor I set the amount of health added to -25, it did nothing. So instead I made it to +10 and set a function that hurts the player when their health increases, and then added rest of the stuff I wanted. Ps. No code because I'm writing from a phone |