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
Rowzter Offline
Junior Member

Posts: 44
Threads: 12
Joined: Oct 2012
Reputation: 3
#26
RE: [Tutorial] Use crowbar to open a door

(05-23-2014, 11:19 AM)Romulator Wrote:
(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

Mixed around with your tips and the door seems fixed now! Thanks =D!

Alraight, so instead of bumping an old thread i should create a completely new instead.
05-23-2014, 04:48 PM
Find


Messages In This Thread
RE: [Tutorial] Use crowbar to open a door - by Rowzter - 05-23-2014, 04:48 PM



Users browsing this thread: 1 Guest(s)