So, I'm not the best at coding, but I know how to handle it good enough. I want to make an object produce light like any other light, but only when it's state is set to 'on'. However, I don't know what the function for that is called, if it even exists. Any help?