How to remove a Timer Loop which opens a door using AddPropForce?
I wanted to make a door open by itself slowly behind the player and used Frictional's code in their .hps of the first level (Rainy Hall) as reference.
The door opens nicely and behaves as expected, but I can't figure out how to remove the loop so the player can close the door without it wanting to open again
What it does, is that the timer isn't 0.01, so it keeps doing the second AddPropForce.
And thus, making it close/open all the time.
I think that this is the problem, when thinking logically.
EDIT: And so after reading your post again, I see this isn't what your looking for...
Maybe try making timer last longer, make the it push the door open until the time runs out, and have nothing on the other side of the "else".
That would make it stop looping...
(This post was last modified: 12-12-2010 02:18 AM by Akumasama.)
12-12-2010 02:13 AM
Frontcannon
Senior Member
Posts: 538
Joined: Jul 2010
Reputation: 0