Button that change a surface

Button that change a surface

Re: Button that change a surface Posted by RaPtoR on Fri Jan 7th 2005 at 2:57pm
RaPtoR
212 posts
Posted 2005-01-07 2:57pm
RaPtoR
member
212 posts 61 snarkmarks Registered: Jan 1st 2005 Location: Sweden
Hello, i guess the subjects says it all but ill describe my problem more carefully:

I have a button and when i press it, i want it to change a texture nearby.

It might not change the texture itself but i want the user playing my map to

see a surface nearby change. Is this possible?
Re: Button that change a surface Posted by DrGlass on Fri Jan 7th 2005 at 6:26pm
DrGlass
1825 posts
Posted 2005-01-07 6:26pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
yes! its quite easy too.

set up the wall you want to change, then make another wall behind it
and close any gaps so that the inside wall (the one that will change)
is 'inside' the map. Puth the first texture you want shown on
this wall.

tie that wall to <span style="color: orange;">func_wall_toggle<span style="color: white;"> and name it <span style="color: red;">wall_1<span style="color: white;">

Now press apply and go to the flags tab and change it to 'start on' (this may be a named somthing else but you get the idea)

copy that wall and paste it over 'wall_1' now change that wall to 'start off'

once that is set up. Make a <span style="color: orange;">func_button<span style="color: white;"> and set its output to 'toggle' <span style="color: red;">wall_1

Thats it! now when the button is
pressed the walls will seamlessly switch places, giving the illussion
that the texture has changed.

</span></span></span></span></span></span></span>