A help request! (With an informative picture!)
Quote from Graytico on August 24, 2011, 9:32 pmSo 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
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
Quote from iWork925 on August 24, 2011, 10:26 pmDid you try func_rotating?
Did you try func_rotating?

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."
Quote from ChickenMobile on August 24, 2011, 10:26 pmYou 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.
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.
Quote from Graytico on August 24, 2011, 11:18 pmThanks. I used the func_rotating which goes 90 per second and it is working the way I need it to
Thanks. I used the func_rotating which goes 90 per second and it is working the way I need it to
Quote from Skotty on August 25, 2011, 8:37 amFor 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".
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".
