Button-to-Door, by UlT1MaT3
Thanks to UlT1MaT3 for the work put into this tutorial.
hey, Everybody well I have been working on this and I have finally got this working on how to push a button and make a door open so here it is! UlT1MaT3
1. Open up common textures textures/common and then let it load and pick brick for walls/roof, and then after that put concrete for the floor( but leave a spot out for a door)
2. Since you havea a section for your door put it in rihgt click and goto functions and select func_door. press "n" and goto func_door while you have your door selected press 180 for angle then for "Key": targetname "Value":p5. And add some other additional stuff like
"wait" -1 makes the door come back to its location. "dmg" 100 if you get in the way when it is closing it will crush you. "speed" 100 how fast the door will open and close. 100 by default "lip" 8 remaing for what is at end of move.
That is it for the door now
3. make a block about 3 squares any texture now besides brick. Right click and select Function--Func_button now select it and press "n" and now you will have func_button
For now just give it a angle of 360 degrees so it presses in and then comes out. You must add this to your "key" target "Value" p5 and make sure the two numbers match. Some other additional stuff that "Should" be added for the button.
"Speed" 40 so this kind of sets speed for both! "lip" 3 what remaining thing that happens when the button is done. "wait"-1 so it comes right back.
* one more thing if you have this working you should have a green line running from the button to the door!
You now should have a working button and door and this is only so that you have to run up to it and push it not shoot. Hope this helps UlT1MaT3 |