Posts: 19
Threads: 4
Joined: Jul 2010
Reputation:
0
Ok, so I have a bank vault which I made. It has 6 small pillars inside and a turning wheel on the front, beside it there's also a keypad. When I do that, if I'm in range of the keypad the 6 pillars would move one by one. How would I do that?
And after that how can I make it for the wheel to turn 2 times, and then the door would open.
Posts: 244
Threads: 2
Joined: Jul 2010
Reputation:
0
I assume the wheel on the vault door is not an object by itself, but rather a part of the vault door, so you can't move it separately.
Get the coordinates of the Keypad then use the function
IsPlayerInRangeOfPoint
then start up the MoveObject's
Then, when IsPlayerInRangeOfPoint returns 0,
use MoveObject's to move the objects back to their original place
Posts: 285
Threads: 8
Joined: Jul 2008
Reputation:
0
Well you would need to check the player's distance from the keypad (IsPlayerInRangeOfPoint) and move the objects if he is range of the keypad. You would need to use timers if you want them to move one by one, might be a bit confusing. You would need to change the rotation of the wheel with a timer also....
Posts: 19
Threads: 4
Joined: Jul 2010
Reputation:
0
The wheel isnt a part of the door. I just found it. I want the objects to move one by one.