Push Buttons

Avatar
Lostprophetpunk
409 Posts
Posted Jul 13, 2011

Heya there,

Just a first note: I am not looking for floor buttons or timer buttons.

What I am trying to do, is to make a working button of the button shown in the picture below, such as it being pushed and then reset...

However, I have no clue how to do it. Every google search I do directs me to the floor button tutorial. Any help would be appreciated.

button.png
Images 1
Post image 1
Advertisement
Registered users don’t see ads! Register now!
Avatar
synthemesc
13 Posts
Posted Jul 13, 2011
Replied 15 minutes later
  1. Make a nodraw textured brush roughly the same size as the prop.
  2. Ctrl+T to tie the brush to an entity.
  3. From the dropdown list, select func_button
  4. Set whatever options you want for the button and whatever actions you want the button to do in the output tab.

If you google search for func_button, you'll find a good tutorial on it.

Avatar
Lostprophetpunk
409 Posts
Posted Jul 13, 2011
Replied 33 minutes later

synthemesc wrote:
1. Make a nodraw textured brush roughly the same size as the prop.
2. Ctrl+T to tie the brush to an entity.
3. From the dropdown list, select func_button
4. Set whatever options you want for the button and whatever actions you want the button to do in the output tab.

If you google search for func_button, you'll find a good tutorial on it.

Thanks. What settings need to be to activate it? As I set it up to activate via 'e' and it doesn't seem to work.

Avatar
Marlovious
111 Posts
Posted Jul 13, 2011
Replied 1 hour later
Make sure the flags are checked properly.
Avatar
MasterLagger
1,695 Posts
Posted Jul 13, 2011
Replied 9 minutes later
Make sure that you can "use" the button. Y'know for the E/Use button to work.
Avatar
Lostprophetpunk
409 Posts
Posted Jul 14, 2011
Replied 6 hours later

MasterLagger wrote:
Make sure that you can "use" the button. Y'know for the E/Use button to work.

I have that selected. As when I first set it up, that was the first thing selected in the flags tab.

Avatar
Skotty
671 Posts
Posted Jul 14, 2011
Replied 6 hours later
If you have your invisible button over the prop button you need to set outputs. You func_button needs the following output: OnPressed <name of the prop button> SetAnimation <name of the animation>.

To see what animations are aviable, you have to select the prop button and open the keyvalue window. There you can switch to "Model" and there you can view the animations.
Oh be sure that your button prop is a prop_dynamic.

Avatar
Lostprophetpunk
409 Posts
Posted Jul 14, 2011
Replied 2 hours later

Skotty wrote:
If you have your invisible button over the prop button you need to set outputs. You func_button needs the following output: OnPressed SetAnimation .

To see what animations are aviable, you have to select the prop button and open the keyvalue window. There you can switch to "Model" and there you can view the animations.
Oh be sure that your button prop is a prop_dynamic.

Thank you for the help. However when I try and find an animation for the push button it doesn't appear to have any. the only thing listed in 'Model' is the 'bindpose'.

Avatar
Skotty
671 Posts
Posted Jul 14, 2011
Replied 29 minutes later
Maybe there is another model of this button. Just keep looking. Or just use another model.
Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Jul 14, 2011
Replied 34 minutes later
There is the model for the red button itself, and one for the pad which the button goes on. You could make the red button attach to a func_door (or attach it to a func_button), then parent the model to the button or door.