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
help with a secret swing door
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#2
RE: help with a secret swing door

For a secret door I don't really know, but I'm going to decribe how you would do it for a normal door. Logically, they should be handled in the same way.

If you want your door to suddenly swing closed when the player collides with an area; then using
SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);

should do the trick

If you want it to close more slowly first and then lock, then use some
AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

first, and then after a second or so use the one above here to set it locked.
02-18-2011, 06:35 PM
Find


Messages In This Thread
help with a secret swing door - by WoollySammoth - 02-18-2011, 03:19 PM
RE: help with a secret swing door - by Tottel - 02-18-2011, 06:35 PM



Users browsing this thread: 1 Guest(s)