How to make buttons.

  • Thread starter Thread starter EvilDisc
  • Start date Start date
E

EvilDisc

Guest
How do i make buttons in half life 2 maps?
I need to make a trigger that i can push with my "use" button to spawn a npc. :|
 
the way i make buttons is the following: First, create a brush about the size you want your button 2 be. then hit ctrl+t which enables the tie to entity function, scroll down to func_button. i dont know what ur making a button for though.
 
Thanks! :thumbs:

Now there is only one problem left. How do i make the button spawn a headcrab?
 
I believe you need to place all the things you want to spawn around.
Make a point_template
Have all the things you want to spawn at that when the button is pressed in it.
Then you need a entity maker that will link to the point template.
Then when the button is pressed, tell the entity maker to make and that should work.
It SHOULD work, I've never done it myself.
 
Hmmm... didnt work(i didnt get it to work). Someone who can tell me and have tested it themself?
Maybe i just need a better guide :P
 
evil disk do u have aim, cuz i get talk to u and send u some of my maps that i think might help u
 
mirc? there you can send them to me... just give me your nick and what network you are on an what channel.
 
I managed to make that "button what spawns an enemy".
Easy it is.

1: I made brush and added it props/doorbutton002a texture so it looks like button.
2: ctrl+t and selected func_button.
3: I created a headcrab few "meters" away from that button and gave it name: "headcrab1"
4: I Created point_template and named it "crabSpawn"
5: added "headcrab1" to "Template 1".
6: added output to button i just created:
OnPressed : target: "crabSpawn", target input: ForceSpawn

So thats it. When u press that button, a headcrab will appear at the place u put it in the editor.
Hope this helps u mateys! :dozey:
 
Back
Top