The Game Modding Community - Since 2001

Hammer: How to compare two buttons?

A Forum Thread for Counter-Strike: Source

I have a made a CSS map in Hammer, now I have a question. But I am not sure where to post it. So I posted it here. I want to compare 5 func_buttons, if they are all damaged then I want to a portal to be activated. So before all five buttons are damaged nothing happens, after that the portal works fine. 1. I almost know how to do it with one button, go to output. Select My output named: OnDamaged, then select Targets entitie named: portal1, and then I don't know wich one to select at Via this input? So the portal1 (wich is Start disabled: yes) will be enabled. 2. And is it possible to enable the portal only if five buttons are damaged?


  • 8y
    Logan Dougall avatar
    Logan Dougall username pic Joined 12y ago
    Half Life Storm Flag Affiliation: Half Life Storm
    16,497 points Ranked 265th
    40 medals 3 legendary 9 rare
    • Achieved Admin clearance Medal icon
    • 500 posts awarded Exemplary Feedback Medal icon
    • 10 years a member Medal icon
    • 50 posts awarded Exemplary Feedback Medal icon
    • 100 posts awarded Exemplary Feedback Medal icon
    • 200 posts awarded Exemplary Feedback Medal icon
    Logan Dougall avatar
    Logan Dougall
    Half Life Storm Flag
    Half Life Storm
    You can use a math_counter to do what you want. Have each button add 1 to the counter when damaged and give the math_counter an output when it reaches 5 to enable the portal.
    ÜberStylers {...} ~/clubs/1947


Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:


aepjeh avatar
aepjeh Joined 8y ago

Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+


  • 1 Posts
  • 8y Submitted

SEX! Ok, we got your attention. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Interested? Sign up now!

Already a Bananite? Login tracking pixel