Frictional Games Forum (read-only)
How to get a door to blow open? - 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: How to get a door to blow open? (/thread-20544.html)



How to get a door to blow open? - Damascus Rose - 02-27-2013

So I'm trying to get this swing door to open through script, and I've tried a few things, none of them work. I opened up the script from the Rainy Hall and copied it for my own door, but it has no effect. I also tried PropImpulses and Forces and still it does nothing. Right now all I have is

SetSwingDoorDisableAutoClose("nightmare_door", true);
SetSwingDoorClosed("nightmare_door", false, false);

Which is what the script in rainy hall does, and it has no effect on the door at all. Can somebody help?


RE: How to get a door to blow open? - Adny - 02-28-2013

disable auto close and add prop force. make sure you're using the proper direction, and a high enough value for the force (just copying/pasting FG's specific script might not work immediately, it'll take some tinkering).

Also go back and check the basic stuff, e.g. making sure the names match


RE: How to get a door to blow open? - Damascus Rose - 02-28-2013

(02-28-2013, 05:41 AM)Adny Wrote: disable auto close and add prop force. make sure you're using the proper direction, and a high enough value for the force (just copying/pasting FG's specific script might not work immediately, it'll take some tinkering).

Also go back and check the basic stuff, e.g. making sure the names match

I've done this already, switched it around in many ways and double-checked everything, added propforces even in the thousands and nothing has an effect. Nothing is blocking the door either, it opens perfectly fine when opened manually. Also I know the script is processing because I added a debugmessage


RE: How to get a door to blow open? - FlawlessHappiness - 02-28-2013

Try clicking the door-entity in the editor, and look in it's properties.
There will be something called "Open amount". Try setting this to 0.1 or 0.2, and do the script again.

Also, are you completely sure that the PropForce is pointing the right way? And you didn't forget a minus.


RE: How to get a door to blow open? - Tiger - 02-28-2013

This might answer your question.

Edit: oh, didn't see this:
(02-28-2013, 05:48 AM)Damascus Rose Wrote: Also I know the script is processing because I added a debugmessage

I'm not sure what's the problem. Post the script maybe?