Re: Red/Green func-button textures -- Is this how to do it right ?
Posted by jcw on
Thu Jul 29th 2010 at 4:29pm
jcw
member
17 posts
2 snarkmarks
Registered:
Jul 8th 2010
Objective: When using a button that activates a multimanager sequence, how to I get it to toggle the texture/display between a green button and a red button.
More specifically: Let's say that my func_button has a delay-before-reset of 10 seconds. So I want a green button displayed at all times EXCEPT for the 10 seconds that the button has been pushed an is waiting for the reset timer. During that 10 seconds I want a red button displayed to let the person know that the button function is not presently available.
How I am doing this now: I have two func_wall_toggle entities, one with a green button texture, and the other with the corresponding red button texture. I have the flags set opposite so that only the red button func_wall_toggle starts INVISIBLE. Then with a multimanager/multisource I include ...
redbutton 0
redbutton 10
greenbutton 0
greenbutton 10
This seems to do what I want, but with one quirk that I can't figure out. Before the func_button is pushed for the first time the green button is displayed like I want. But the first time that I activate the button the green button is STILL displayed for the 10-second reset period. (It should have toggled to the red button func_wall_toggle.) For the 2nd, 3rd, and all future button activations the red button is displayed properly for that 10-second period. It's only wrong for the first activation.
QUESTION: Is there a better way to accomplish red/green button displays with Worldcraft 3.3 and Zoner's HalfLife Tools? Can you explain why my first button activation does not work properly?
Thanks.
Re: Red/Green func-button textures -- Is this how to do it right ?
Posted by jcw on
Fri Jul 30th 2010 at 5:16pm
jcw
member
17 posts
2 snarkmarks
Registered:
Jul 8th 2010
What are the four entities?
And to which entities do I apply the two textures onto?
(If there is only one func_button, this cannot use two textures, right?)
Re: Red/Green func-button textures -- Is this how to do it right ?
Posted by jcw on
Fri Jul 30th 2010 at 9:52pm
jcw
member
17 posts
2 snarkmarks
Registered:
Jul 8th 2010
What are you using the two func-wall_toggle entities for?
I thought they would be needed to toggle the view between the two textures, but if the func_button does this already, why are func_wall_toggles needed?
Thanks.
Re: Red/Green func-button textures -- Is this how to do it right ?
Posted by jcw on
Tue Aug 3rd 2010 at 12:19am
Posted
2010-08-03 12:19am
jcw
member
17 posts
2 snarkmarks
Registered:
Jul 8th 2010
Thanks tnkqwe.
Like you said, I was using 4 entities instead of one. (I'm relatively inexperienced as a mapper, as you've probably figured out.)