Please or Register to create posts and topics.

Making a button that activates when shot?

I know how to make the big red buttons from portal, but I want to be able to shoot it with the portal gun to activate it. I would use func_portal_detect unfortunately, you cant place portals on buttons. Isnt there a flag to check that says shooting it activates it? if so, would that include the portal gun?

I don't think so.
This flag is meant to be used with damages.
And the portalgun doesn't damage anything.

so how else could i do it?

Maybe an invisible brush over the button?
When that brush is hit, detect the portal with portal_detector, and destroy it immediatly. The portal should not even appear.
At the same time you dstroy the portal, activate the button.

Thanks to Portal, someone's birthday is now the most feared day in the year...
NO! THE CAKE! NOOOOOOOO !
Hyakkidouran wrote:
Maybe an invisible brush over the button?
When that brush is hit, detect the portal with portal_detector, and destroy it immediatly. The portal should not even appear.
At the same time you dstroy the portal, activate the button.

I just tried it and got it working. I used a func_wall (named "wall")and the nodraw texture. "button_door" is the func_door used to move the top button prop. On the portal_detector add the following outputs:

OnStartTouchPortal1>wall>kill
OnStartTouchPortal2>wall>kill
OnStartTouchPortal1>button_door>open
OnStartTouchPortal2>button_door>open

The portal never shows.

Image

Very clever! I like it.

thanks, this will be a useful tool to put in my map and will lend to its uniqueness