Please or Register to create posts and topics.

A help request! (With an informative picture!)

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.
Image

[Edit] I forgot to mention, it is supposed to rotate. I tried using a few func_door_rotating, but it didn't work correctly

Did you try func_rotating?

Image
PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."

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.

?????????????????????????????TWP Releases | My Workshop

Thanks. I used the func_rotating which goes 90 per second and it is working the way I need it to

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".