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

Join the forum, it's quick and easy

Valve hammer editor tutorials!
SITE UNDER-CONSTRUCTION! MAYBE WEIRD STUFF, REPEATS,OR CATEGORIES ALL MIXED UP
Valve hammer editor tutorials!
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to make Levers(switch for lights or something)

Go down

How to make Levers(switch for lights or something) Empty How to make Levers(switch for lights or something)

Post  Ryan Li(Forum Owner) 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

https://vhetutorials.board-directory.net

Back to top Go down

Back to top

- Similar topics

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