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


Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Use crowbar to open a door
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#25
RE: [Tutorial] Use crowbar to open a door

(05-23-2014, 10:34 AM)Rowzter Wrote: Sorry for bumping this but when the door opens it glitches out from the door frame. is there a way to "slow the door down",
Though the bump was unnecessary and a new thread would have been better option, unless your door is placed incorrectly, it should be okay.

Regardless, the impulse of the door may be your problem, either by direction or that your impulse is a little too much. Assuming your using the same code as the OP, take a look at this line:
PHP Code: (Select All)
AddPropImpulse("NAMEOFYOURDOOR"003"world"); 

That 3 is the Z Coordinate, meaning the door will fling in that direction. Try making that a negative. So that it becomes -3.
PHP Code: (Select All)
AddPropImpulse("NAMEOFYOURDOOR"00, -3"world"); 

If that doesn't work, try moving that 3 to the X coordinate. So it looks like this:

PHP Code: (Select All)
AddPropImpulse("NAMEOFYOURDOOR"300"world"); 

And of course, if that still doesn't work, try a negative three in the X. If it still glitches out, lower the three to a two. An impulse of three should work fine, but an impulse of 1 is not really noticeable. You shouldn't need to put it in the Y coordinate Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-23-2014, 11:19 AM
Find


Messages In This Thread
RE: [Tutorial] Use crowbar to open a door - by Romulator - 05-23-2014, 11:19 AM



Users browsing this thread: 1 Guest(s)