Author Topic: Anyone good at Hammer editor?  (Read 782 times)

I'm new to Hammer and I want to display a game_text popup after someone presses E/the interact key on them.
What sort of output do I use to check this?
I posted this on the hammer subreddit but I have a feeling it's gonna be a while till it gets replied to.
Thanks.

Does this belong in Games or should it be in Off Topic?

i think maxx is but idk


So you have these two, your game_text and a brush.
Select your brush and hit Ctrl+T and this should show up

Change it from a func_detail to a func_button and hit Apply

Go to the Flags tab and make sure that Use Activates is checked

Go to outputs, click add, and input the following:

Now text is going to be red, go back to your game_text and put "text" into it's name

Make sure you hit apply, and that should be it!

Note: It has to be a brush, if you want a prop to be a button, surround it with a brush and set its texture to tools/toolstrigger

Ingame:
« Last Edit: October 02, 2016, 03:32:16 PM by startacker »

I know that, but is there a way to add it to NPCs? I want to make it so whenever someone presses E on an NPC they will display text.

I know that, but is there a way to add it to NPCs? I want to make it so whenever someone presses E on an NPC they will display text.
Just with a bit of parenting

Get your guy

Give him a name

Surround him with a nodraw brush (Make it larger than the one I have here, to avoid the hitbox blocking the brush) and hit CTRL+T

Put "guy" (or whatever you want to call him) into the parent box
And then do the same thing that you did with the original button
Make sure you enable don't move in the flags tab



That works good, but can I make the button not collide?

i think maxx is but idk

he is

he's made a lot of maps before, you can ask him some things