![]() |
Can't get door to open in Custom story - 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: Can't get door to open in Custom story (/thread-18310.html) |
Can't get door to open in Custom story - CrazyKilla - 09-13-2012 Hello, im CrazyKilla Im making a custom story and i made this: Code: void OpenWindDoor(string &in asParent, string &in asChild, int alState) RE: Can't get door to open in Custom story - Robby - 09-13-2012 I think you should try messing with the "AddPropForce" numbers there. Maybe you'll catch the right number. If it moves as if you tossed a stone at it, then it is still closed. RE: Can't get door to open in Custom story - Kreekakon - 09-13-2012 I think it's likely the AddPropForce value. To see any effects, it's best you set it above 2000 at least. RE: Can't get door to open in Custom story - Tomato Cat - 09-13-2012 You also have an extra set of brackets. =o RE: Can't get door to open in Custom story - Robby - 09-13-2012 (09-13-2012, 03:58 PM)Mr Credits Wrote: You also have an extra set of brackets. =oThough it doesn't seem to be much of a problem. Otherwise an error would pop up. RE: Can't get door to open in Custom story - Tomato Cat - 09-13-2012 (09-13-2012, 04:00 PM)Nemet Robert Wrote: Though it doesn't seem to be much of a problem. Otherwise an error would pop up.Yeah, it's probably no big deal. =U It's more than likely, as you said, the amount of force and the axis he's using. RE: Can't get door to open in Custom story - CrazyKilla - 09-13-2012 Nope, i put the force to 2000, nothing, i put it up to 5000, still nothing, i changed it between X Y and Z and still nothing, found 2 tutorials for it and i also found a example of it in '00_rainy_hall.map' from amnesia main story, still nothing RE: Can't get door to open in Custom story - Kreekakon - 09-13-2012 Hmmm well there's a possibility that the door is still stuck, despite your code. To rule that out, put something like this in your script, and try to start with your door slightly open: Code: void OnStart() Replace "crowbardoor" with whatever your door name is. This script will ensure that all the time, the door will not auto lock itself. RE: Can't get door to open in Custom story - Kiwi2703 - 09-14-2012 Shouldn't it be "SetSwingDoorLocked" instead of " SetSwingDoorClosed"? Cause the door might still be locked.. or am I wrong? RE: Can't get door to open in Custom story - Robby - 09-14-2012 (09-14-2012, 11:52 AM)Kiwi2703 Wrote: Shouldn't it be "SetSwingDoorLocked" instead of " SetSwingDoorClosed"? Cause the door might still be locked.. or am I wrong?If the door's locked in the Level Editor, you can untick that without using this script. SetSwingDoorClosed is for closing or opening doors. So it should be correct. Try setting the door's "open" amount to 0.2 at least. Then it won't be fully closed, and the slightest push will open it. Had to resort to that. |