Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get a door to blow open?
Damascus Rose Offline
Posting Freak

Posts: 1,107
Threads: 22
Joined: Mar 2012
Reputation: 24
#1
How to get a door to blow open?

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?

[Image: damascusrose2.png]
02-27-2013, 11:55 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: How to get a door to blow open?

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 rate it 3 memes.
02-28-2013, 05:41 AM
Find
Damascus Rose Offline
Posting Freak

Posts: 1,107
Threads: 22
Joined: Mar 2012
Reputation: 24
#3
RE: How to get a door to blow open?

(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

[Image: damascusrose2.png]
02-28-2013, 05:48 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: How to get a door to blow open?

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.

Trying is the first step to success.
(This post was last modified: 02-28-2013, 06:59 AM by FlawlessHappiness.)
02-28-2013, 06:58 AM
Find
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#5
RE: How to get a door to blow open?

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?
(This post was last modified: 02-28-2013, 04:51 PM by Tiger.)
02-28-2013, 04:49 PM
Find




Users browsing this thread: 1 Guest(s)