Turn on/off the light or group of lights (they should have the same name).
- Script for light switch
- Script for the lights
- Sound of turning on/off the light ("switch1.wav")
How to use:
1) Add for the light switch script "light_switch.lua"
(Set the object to staticmode = No)
(Is Immobile = Yes)
(If Used = light's (or group of lights) name (with "Acid\light_activated_on_off.lua"))
(Sound0 = Sound of Sound of turning on (in example "switch1.wav"))
(Sound1 = Sound of Sound of turning off (in example "switch1.wav"))
2) Add for the light(s) script "light_activated_on_off.lua"
(Set the light to staticmode = No)
If you liked the script, please leave a comment in my thread: https://forum.game-guru.com/thread/211767