- Mar 26, 2014
- 19
- 2
So I'm working on a jump map, and I've hit a snag with a secret that I'm try to add. Figured I'd ask you guys to see if what I'm trying to do is possible. I know you guys are good with all the quirks of hammer logic, so I figured I'd post here instead of the jump forum.
I would like to have a button that, when damaged, causes a brush to move up and down indefinitely. And when damaged again the brush that's moving would freeze in place. I would also like to make it so that, when the brush is moving, a texture on the map changes to indicate that the button is activated. The texture would need to change back to the default texture when the brush isn't moving.
Right now I have a button which toggles a logic_timer, which is set to toggle a func_door to open and close at a rate that makes the brush that's parented to it move up and down without stopping. The main problem with this setup is that the door will always return to the closed position, instead of freezing in place when the button is toggled off.
I can provide pictures of the brushes and buttons in question, or a link to the .vmf if it would be helpful.
I would like to have a button that, when damaged, causes a brush to move up and down indefinitely. And when damaged again the brush that's moving would freeze in place. I would also like to make it so that, when the brush is moving, a texture on the map changes to indicate that the button is activated. The texture would need to change back to the default texture when the brush isn't moving.
Right now I have a button which toggles a logic_timer, which is set to toggle a func_door to open and close at a rate that makes the brush that's parented to it move up and down without stopping. The main problem with this setup is that the door will always return to the closed position, instead of freezing in place when the button is toggled off.
I can provide pictures of the brushes and buttons in question, or a link to the .vmf if it would be helpful.