Remove an object with a button

Remove an object with a button

Re: Remove an object with a button Posted by Glus_Master on Wed Aug 22nd 2007 at 4:29pm
Glus_Master
13 posts
Posted 2007-08-22 4:29pm
13 posts 51 snarkmarks Registered: Aug 12th 2007 Occupation: [nerd herd] Location: USA
I am making a map that is a fort map for gmod. (I tested it and it plays on gmod like it would on hl2dm) When one team is done building their fort, I want to put in a button they can hit that will remove the wall infront of them so they can see the other team. (or the other teams wall if they are not done already) If this isn't possible I want to make it so after a certain time limit the wall will be removed automatically.

Please help! there is nothing about this that I have found so far anywhere! :shocked:
~Leeroy Jenkins
Re: Remove an object with a button Posted by Natus on Wed Aug 22nd 2007 at 8:17pm
Natus
570 posts
Posted 2007-08-22 8:17pm
Natus
member
570 posts 76 snarkmarks Registered: Jan 28th 2005 Location: Denmark
Create your wall, make it into a func_brush, name it something like wall and make sure solidity is set to toggle

Now make a new brush you want to be your button, make it into a func_button.
Under output add the following:

OnPressed
Target: wall
Disable.
Re: Remove an object with a button Posted by Glus_Master on Thu Aug 23rd 2007 at 1:00am
Glus_Master
13 posts
Posted 2007-08-23 1:00am
13 posts 51 snarkmarks Registered: Aug 12th 2007 Occupation: [nerd herd] Location: USA
Thanks!!!
~Leeroy Jenkins