beginscript; ExcTargetType (0); IncTargetType(0x80); label PowerCheck: if (GetGlobalVar(4) == 3) { TurnUnitLightsOff(GetUnitID()); } else if (GetGlobalVar(3) == 1) { TurnUnitLightsOn(GetUnitID()); EndFrame(); goto End; } EndFrame(); goto PowerCheck; label End: EndFrame(); goto End; endscript; $