Buttons -1 reply

Please wait...

ZeroTM

Share Victory. Share Defeat.

50 XP

15th April 2006

0 Uploads

74 Posts

0 Threads

#1 11 years ago

I made an imperial shield brush and behind it are weapons. The thing is, I want the shield to be turned on or off with 2 brushes I set. One is for ON, and the other for OFF. Can anyone explain how to make this work?




NAB622

EAT ME!

50 XP

8th October 2005

0 Uploads

6,921 Posts

0 Threads

#2 11 years ago

sure. Make 3 brushes total - the one for it being open, the one for it being closed and another one which is plain old clip physics. Select the two with the shield textures and make all sides but the one you want to be visible out of nodraw, then select the one for on and the clip physics brush and make them both into one func_wall. Then make the 'off' shield into another func_wall, and in it's entity properties, check the start_off box. Func_walls toggle being there and not there when you use them with a trigger or whatever. Assign both func_walls the same targetname, connect your trigger and then it works! If you want to make the shield visible on both sides, then you can make new shield brushes facing the opposite direction and have them be part of their respective func_wall entities, or you could just texture both sides of the ones and make a shader for the textures that defines them as nonsolid. Whatever way works for you!




ZeroTM

Share Victory. Share Defeat.

50 XP

15th April 2006

0 Uploads

74 Posts

0 Threads

#3 11 years ago

The thing is, the shield is three brushes and I'm new at this so it's still a bit confusing. I try connecting the trigger to the walls with Ctrl+K after shift clicking the trigger and three wall brushes but it won't work even when I select one wall. The tuts don't exactly say how to make this type of thing work.

Here are the buttons that I want to use as ON/OFF: pic1ae0.th.jpg

Here's the shield wall separating players from the guns: pic2es8.th.jpg




Kyross

Always there, always watching.

50 XP

18th January 2005

0 Uploads

856 Posts

0 Threads

#4 11 years ago

You should do what he recommanded then: Give all the walls the same targetname and target them with the trigger.




The One and Only

I R Scary Eyeball

50 XP

29th January 2004

0 Uploads

4,091 Posts

0 Threads

#5 11 years ago

Or you could just make all 3 shields into a single func_wall.




ZeroTM

Share Victory. Share Defeat.

50 XP

15th April 2006

0 Uploads

74 Posts

0 Threads

#6 11 years ago

I got it to work with the walls, and I placed these settings on my button. However, when I press it, it disapears. Can I do anything to fix that?

useablerz8.th.jpg

Anyone?




ZeroTM

Share Victory. Share Defeat.

50 XP

15th April 2006

0 Uploads

74 Posts

0 Threads

#7 11 years ago

Anyone?