Quick Question - what's wrong with my "if"

var FGcamera : GameObject ;

function Update () {

if (FGcamera.active = false) {

gameObject.active = false;

}

}

== is a comparison, = is an assignment; you can't assign things when you mean to compare things. In this particular case you don't even need it though, and could write

if (!FGcamera.active) {