And another question.. It is possible to make the light turn on or start flickering after electricity is turned on? I tried adding flag_wait eeletricity on to you script, but it gave me an error.
And another question.. It is possible to make the light turn on or start flickering after electricity is turned on? I tried adding flag_wait eeletricity on to you script, but it gave me an error.
Line should be like flag_wait("electricity_on"); Add that just before the light you want to be activated
is there a simpler version of this? like what do i need to do if i just wanted to do lights on off via a light switch Double Post Merge: January 25, 2015, 07:58:13 pm+1 tho
is there a simpler version of this? like what do i need to do if i just wanted to do lights on off via a light switch Double Post Merge: January 25, 2015, 07:58:13 pm+1 tho
Doesn't get much simpler then this i'm affraid.
-download the script, put it in your mods folder -add two line's of code. One in your mapname.gsc, and one in your mapname.csc ( in the OP ) -open radiant -create a light, read the OP for the KVP's / spawnflags -create a trigger_use or a trigger_multiple, again the KVP's are in the OP -compile -done
Also with the download is a textfile with description of the KVP's. and a how-to-install file..
Because all of these need to be primary lights you dont want to have their radius overlap each other too much, or you will prob end up with light / dark spots and/or glitchy lighting. That should be all..
does the same problem occur if the two radii overlap are a standard light and a primary light and not two primary lights?
first i tried to get a simple on off to work. it took me a bit to get it working but i got it. i tried to put it in another map and now the light just stays on and doesnt respond to the trigger. any help??? thanks.
first i tried to get a simple on off to work. it took me a bit to get it working but i got it. i tried to put it in another map and now the light just stays on and doesnt respond to the trigger. any help??? thanks.
If it worked in the first map, you prob just forgot a KVP or a call to a script somewhere. Double check the targetname's etc and make sure the scripts are called from mapname.gsc / .csc
If it worked in the first map, you prob just forgot a KVP or a call to a script somewhere. Double check the targetname's etc and make sure the scripts are called from mapname.gsc / .csc
AHA i called it in the csc in my mods folder but not the raw folder. thank you!!