How many of you have ever been building,testing or playing an FPSC game and you pressed ENTER to open a door and the light turned on/off at the same time?
Since most light switches are next to the door when you go into a room probably a lot.
With this light switch script that I modified you can use it as your main AI script for a light switch and instead of pressing ENTER you press L (for light) to turn the light switch on/off.
You have to have fairly basic knowledge of FPSC to use this script.
I have included instructions on how to make the script work
as well as instructions on how to change the key to turn the light on and off.