• Please go to our Discord or SteamRep for trading. Bans and appeals go HERE

SkepticalBear

Notably Dangerous Demo-Knight
Contributor
Okay so I wanted to create a death run map for TF2 as I had some pretty good ideas, it's been years since I used hammer but I've just had a play around and seem to remember most things.

I'm just wondering how you create buttons that activate the traps, does anyone know?

Thanks
 

Cream Tea

Epic Skial Regular
Legendary Mapper
  • Like
Reactions: SkepticalBear

SkepticalBear

Notably Dangerous Demo-Knight
Contributor
https://developer.valvesoftware.com/wiki/Func_button
https://developer.valvesoftware.com/wiki/Inputs_and_Outputs

You need to create a thin square/rectangle shape, and the press toEntity button on the side of the Editor. Choose func_button and use either "onPressed" or "onDamaged" events.
NOTE: If you are using "onPressed" you must check the flag "Damage Activates", you only really need this if you want compatibility with Garry's Mod's "Use" function (When you press e on a button).

Thanks very much, that helps a lot!