Frictional Games Forum (read-only)

Full Version: How to get a door to blow open?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
(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
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.
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?