Rotating object in need of help
Alright, this is what I got: an object and 2 buttons.
What I want:
When pressed button 1, it turns 90 degrees left. After 2-3 seconds, you can press the button again and it turns left once more. This can continue on and on.
When pressed button 2, it turns 90 degrees right. Same features as button 1 just in the other direction.
What I tried:
door_rotating - works almost good, but has a fixed distance, meaning that only once you can turn into wanted direction
func_rotating - would be best, but doesn't have distance.
Help me out here.
Thanks in advance
Alternatively, you could have two func_door_rotatings, one for each direction. To rotate parent the object to the door, Open it, then ClearParent and Close the door to reset it. The various OnOpen, OnClose, OnFullyOpen, OnFullyClosed outputs will be helpful in setting outputs. OnButtonPressed Lock both buttons, set the parent, set the speed of the door to whatever you want, then open the door 0.01s later (to make sure the inputs fire). OnFullyOpen clear the parent, set the speed to something like 100000 (so it resets very fast), then close the door 0.01s later. OnFullyClosed Unlock the buttons.