Hi all, I am still headbashing my way through scripting. The following script is tied to a point light, but when I try and run it, unity gives me an error, “An instance of type ‘UnityEngine.Light’ is required to access non static member ‘intensity’”.
function Update () {
var jetflux = (landerCore.landerEnginePower/100);
Light.intensity = jetflux;
}
all I want my point light to do is to glow by a factor of the jetflux variable.
I know this must be basic scripting but I am a bit lost…