Making a button that activates when shot?
Quote from cornontheCoD on February 13, 2008, 6:42 pmI 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 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?
Quote from NykO18 on February 13, 2008, 7:31 pmI don't think so.
This flag is meant to be used with damages.
And the portalgun doesn't damage anything.
I don't think so.
This flag is meant to be used with damages.
And the portalgun doesn't damage anything.
Quote from cornontheCoD on February 13, 2008, 7:57 pmso how else could i do it?
so how else could i do it?
Quote from Hyakkidouran on February 13, 2008, 8:46 pmMaybe 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.
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.
NO! THE CAKE! NOOOOOOOO !
Quote from bizob on February 13, 2008, 10:07 pmHyakkidouran 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>openThe portal never shows.
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.
Quote from Reverend Protocol on February 14, 2008, 3:47 amVery clever! I like it.
Very clever! I like it.
Quote from cornontheCoD on February 14, 2008, 6:32 pmthanks, this will be a useful tool to put in my map and will lend to its uniqueness
thanks, this will be a useful tool to put in my map and will lend to its uniqueness