Clinging to ladder after falling 2 floors - 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: Clinging to ladder after falling 2 floors (/thread-23302.html) |
Clinging to ladder after falling 2 floors - CarnivorousJelly - 09-21-2013 I have a little teeny-tiny scripting problem - might be a level editor problem, I'm not entirely sure: What's supposed to happen - Player is climbing a bookshelf to grab a specific book, get's about... 3/4 of the way there and loses grip. They then fall 6m-ish flat on their back and black out. What is actually happening - Player climbs up, loses grip at 3/4 of the way up, falls, blacks out. Trying to move forward upon waking up results in climbing up the shelf. This is the script: Code: void Script_Fall (string &in asParent, string &in asChild, int alState) There's about 3m between the shelf and the wall behind it, so I'm pretty sure that's not the problem. Any suggestions? RE: Clinging to ladder after falling 2 floors - DeAngelo - 09-21-2013 Try setting the ladder area inactive, I have something similar in my custom story. After the scene you can re-activate it if you want to let the player go back up. RE: Clinging to ladder after falling 2 floors - CarnivorousJelly - 09-21-2013 Code: if(asTimer == "F2") RE: Clinging to ladder after falling 2 floors - PutraenusAlivius - 09-21-2013 Make sure that the name is consistent with the one at the LevelEditor. RE: Clinging to ladder after falling 2 floors - Daemian - 09-21-2013 This function ChangePlayerStateToNormal(); makes the player release the ladder. Then, i would make the player look up with StartPlayerLookAt+area at the ceiling and i'd have the player inactive in this events, mostly to stop him from grabbing the ladder again. RE: Clinging to ladder after falling 2 floors - CarnivorousJelly - 09-21-2013 Thanks, Amn! I'll have to give that a try :) (Thanks to everyone else that answered as well :P) |