Button that change a surface
Post Reply
Quote
Re: Button that change a surface
Posted by RaPtoR on Fri Jan 7th at 2:57pm 2005


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?
[addsig]




Quote
Re: Button that change a surface
Posted by DrGlass on Fri Jan 7th at 6:26pm 2005


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 func_wall_toggle and name it wall_1

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 func_button and set its output to 'toggle' wall_1

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





Post Reply