Valve hammer editor tutorials!
SITE UNDER-CONSTRUCTION! MAYBE WEIRD STUFF, REPEATS,OR CATEGORIES ALL MIXED UP

How to make Levers(switch for lights or something)

View previous topic View next topic Go down

How to make Levers(switch for lights or something)

Post  Ryan Li(Forum Owner) on Sun Dec 13, 2009 8:33 pm

Everyone must remember the lever on cs_militia which turns off lamps in canalization Razz I'll explain, how to create an analogue of this lever.

First, create a long thin brush (it will be the lever). Make an ORIGIN-brush in it's basics. Allocate origin-brush and lever...and make it func_rot_button. Type in these parametres:

Targetted object - write the name of object which you want to toggle or turn on/off (for example, 'door1');
Speed - 200 (spedd of rotating of lever);
Sounds - gus clunc (choose any of sounds from the list);
Delay - 0 (how much time you can't use this lever after toggling; if you write '-1' you'll can use it only once per round);
Distance (deg) - 180 (don't write bigger amount!)

Flags:
+Not Solid (makes lever non-material (player can not prevent the rotating of the lever))
Toggle (If activated, lever would stay in current position until someone won't activate it again)
+ReverseDir, +Y Axis - depends from how you have positioned the lever.

Now, our lever is ready; you must only create an object for activation and write it's name to the lever's Targetted object gap.
Have fun with turning lights on/off Very Happy

Ryan Li(Forum Owner)
Admin

Posts : 13
Join date : 2009-12-13
Location : Private

View user profile http://vhetutorials.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum