A help request! (With an informative picture!)
Posted Aug 24, 2011
So I was making a test chamber recently and I had a good idea, however due to my noobiness in hammer, I was not sure how to carry this out. It is a block that rotates 90 degrees with a button press. So in this picture, the button is pressed in between each frame. The red line represents the front face. If anyone could help me with this I would really appreciate it.
[Edit] I forgot to mention, it is supposed to rotate. I tried using a few func_door_rotating, but it didn't work correctly
Registered users don’t see ads!
Register now!
Posted Aug 24, 2011
Replied
53 minutes
later
Did you try func_rotating?
Posted Aug 24, 2011
Replied
1 minute
later
You could try using a func_rotating that rotates 90 degees every second, and make the func_rotating rotate for a second, however it may eventually go out of being parallel. Creating a number of func_rotating_door s which the brush parents and unparents from would be a better solution.
Also a func_rot_but can give you the same effect, but it doesn't have that annoying default door sound.
Posted Aug 24, 2011
Replied
52 minutes
later
Thanks. I used the func_rotating which goes 90 per second and it is working the way I need it to
Registered users don’t see ads!
Register now!
Posted Aug 25, 2011
Replied
9 hours
later
For such thing's that need to work exactly I always prefer using momentary_rot_button.
You can tell it to rotate 360?. Via inputs you can set it's exact position (0-1, 0=0?, 1=max rotating).
If you want to loop it, you could use a trick:
Use the output "Position math_counter SetValue".
Set the max value of the counter to 1 and add the output "OnHitMax rot_button SetPositionImmediatly 0".
You can tell it to rotate 360?. Via inputs you can set it's exact position (0-1, 0=0?, 1=max rotating).
If you want to loop it, you could use a trick:
Use the output "Position math_counter SetValue".
Set the max value of the counter to 1 and add the output "OnHitMax rot_button SetPositionImmediatly 0".