Into The Abyss "Activate Generators" script

So, I’m working on a script that recreates the objective of the “Into The Abyss” level of the 2013 Unity game, Slender: The Arrival. If you don’t know what I’m talking about, I’m talking about activating power generators. With the help of a forum friend, I was able to get the majority of this script completed. But, I need some help with what to do next with the script. In Slender: The Arrival, once you turn on a generator, the generator light turns from red to green. I want this to happen in the horror game that I’m making. If anybody knows a way to do this, it would be much obliged. Please and thank you!

P.S. I also need some help with these compiler errors I keep on getting. Here’s a screenshot of my script:

Thats the exact same as the script posted in a previous thread you made here
@SirNiklas gave you the basic idea of how the scripts could be formed and put together, you then needed to produce your own scripts from that.
The scripts posted there, dont actually work together 100% and that is why you are getting compile errors.
There are plenty of tutorials online to help you with this stuff, all you need to do is google it.
I typed in to google ‘unity3d generator script’ and some of the first links that came up, provide a video tutorial with complete scripts linked in description for exactly what you need.

1 Like

Guilty as charged. I guess you’re right, @djfunkey . I’ll check it out. Thanks for your help.