Hammer: How to compare two buttons?

A Forum Thread for Counter-Strike: Source

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending aepjeh points.
  • Post: Give aepjeh your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

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?

Posts

  • 8y
    Logan Dougall avatar
    Logan Dougall avatar Offline
    Half Life Storm Flag Affiliation: Half Life Storm
    Admin Joined 11y
    15,302 points Ranked 275th
    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
    Admin
    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

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

More embeddable images

Bookmark and Share

Submitter

aepjeh avatar
aepjeh Offline
Member Joined 8y

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

Category

Stats

Posts
1
Views
824
Date Added
8y
bcp.crwdcntrl.net tracking pixel