MODSonline Subscriptions
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
The next MODSonair show will air LIVE on:
03/21/2010 12:03 EDT

Time remaining:
We Dontated to PixelEquity
"Mod or modification is a term generally applied to PC games, especially first-person shooters, RPGs and real-time strategy games." 2
 
Site News   |   Aggregated News   |   Forums   |   Tutorials   |   Downloads   |   Projects   |   Weblinks
Latest Forum Threads 
CoDWW MP Mapping.. Posts: (1) Views: (13) by [ZCT]CoDMapper
CoD4 MP Mapping.. Posts: (29) Views: (476) by {UST}Hogan
CoD4 General.. Posts: (82) Views: (100) by techno2sl
General Gaming.. Posts: (1) Views: (12) by Cerebral_Assassin
General Gaming.. Posts: (1) Views: (9) by Cerebral_Assassin
CoD2 MP Mapping.. Posts: (8) Views: (73) by PanZerReBorN
CoDWW Map + Mod .. Posts: (35) Views: (317) by dundy
CoD2 MP Mapping.. Posts: (4) Views: (55) by liltc64
CoD4 MP Mapping.. Posts: (10) Views: (145) by Infern4ll
CoD2 MP Mapping.. Posts: (9) Views: (76) by puncster1
Back to Home Page
MODSCON 2010 L4D2 Contest
Dr. Nano Free for the iPhone and iPod Touch
Register/Login to Add a Tutorial
Tutorials
HL2
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Buttons
Versions: You must be logged in to view history.
This tutorial will show you how to make a button that will in this case open/close a door.
This tutorial will show you how to make a button that will in this case open/close a door. Thanks to phb5000 for this tutorial.

Step 1) First of all you will need a simple map, a wall, a door, and a brush with a button texture.

Step 2) Name the button (func_button). (for example Button1)

Step 3) Change any button properties that you want to change. For example, Move Direction = The direction the button moves when it is pushed, Sound = The sound played when the button is pushed, ...

Step 4) Name the door (func_door). (for example Door1)

Step 5) Change any door properties that you want to change. For example, Move Direction, Sound...
        -Changing "Delay before reset" to -1 will cause it to not close by itself
        -The flags allow you to change it so that touching doesnt trigger the door, and other properties.

Step 6) Select the button and choose the "Outputs" tab. Click "Add". In the properties change "My output named" = "OnPressed", "Targets entities named" = "Door1", "Via this input" = "Toggle"

This means that when the button is pressed it will Toggle the state of the door. (if open it will close, and if closed it will open)


And thats it