SCN AASideLightBabylonLampScript

ref		nextitem

BEGIN OnActivate

	set nextitem to apple
	set nextitem to GetFirstRef 26
	while ( nextitem )
		if ( GetDistance nextitem < 24 )
			if ( nextitem.GetDisabled )
				nextitem.enable
			else
				nextitem.disable
			endif
		endif
		set nextitem to GetNextRef
	loop

END
