View Full Version : Switches
06-19-2002, 01:27 AM
How do i make useable switches that light up when their used with the use button (E)
06-19-2002, 03:42 AM
I think it's a shader...
Other than that, I have no idea...
:gungan: Mesa stupid!
06-19-2002, 04:07 AM
06-19-2002, 09:51 PM
06-20-2002, 09:57 AM
For SinglePlayer or Multiplayer? And btw, what do you need the switch for?
06-21-2002, 12:26 AM
sp and for a door
create 2 func_usables (that'll be a switch). Now, apply "switch off" textures to 1 func_usable and and "switch on" texture to the other. Make that one with OFF texture start off (by clicking "startoff box in the entity window"). Also, give them both the same targetname, ie: "switch1".
Then you can put a trigger_multipe (mark player_use box in the entity view) in front of your switch connected to target_scriptrunner.This scriptrunner should run the short script, smth like this:
// code to open the door
This script will basically toggle 2 func_usables making an effect of a switch activating.
06-21-2002, 07:01 AM
Or if you want the much more complicated way that doesn't involve scripting, follow the Switches tutorial on my tut website. :D
vBulletin®, Copyright ©2000-2015, Jelsoft Enterprises Ltd.