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
Trying to open and close a door with a lever
Andross Offline
Junior Member

Posts: 38
Threads: 1
Joined: Oct 2010
Reputation: 0
#2
RE: Trying to open and close a door with a lever

There does not seem to be an elegant way of opening doors. AddPropForce() works, however. See this thread.
Edit: I see you already tried AddPropForce(). Are you sure you applied the force in the correct direction? If so, in the main game they use SetSwingDoorLocked(), SetSwingDoorClosed() and SetSwingDoorDisableAutoClose() before they apply a PropForce. I don't know exactly what each of them does, but I copied it and it works. Look it up in the rainy_hall.

As for your second request, I don't think that there is an appropriate switch. What might work is to use SetPropStaticPhysics(string &in asEntity, bool abStatic) for making the door dynamic before you apply the PropForce and making it static again afterwards. But that would be a total hack Wink.
(This post was last modified: 01-15-2011, 03:50 AM by Andross.)
01-15-2011, 03:47 AM
Find


Messages In This Thread
RE: Trying to open and close a door with a lever - by Andross - 01-15-2011, 03:47 AM



Users browsing this thread: 1 Guest(s)