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

Posts: 4
Threads: 3
Joined: Nov 2010
Reputation: 0
#1
help with a secret swing door

Greetings earthlings!

I shall start by describing what i want to happen:
As the player character runs into a room the castle base secret door is open but as the player runs towards it he collides with an area and that causes the door to close.

I am able to make the door spin with a RotatePropToSpeed but this seems to rotate indefinitely; although, I can stop it on a different area with a stoppropmovement but this leave the player able to time the second trigger to stop rotating the door whilst open.

I've tried using the doorclosed thing but that doesn't seem to work (i think maybe because the secret door isn't like the 'real' doors in the editor).


Sorry if this has been asked before, i had a little check but couldn't find anythings.



Thanks for any help you can give me

Yours
Woolly
02-18-2011, 03:19 PM
Find
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




Users browsing this thread: 1 Guest(s)