[lightlod] Type=ShapeComponent Geometry=boxvan_light.erf [lightwatcher] Type=AttributeWatcherOfInt Attribute=IsDark SimulationShouldExecute=1 [lightswitch] Type=SwitchComponent Input=LightWatcher Child=LightLOD [lod] Type=ShapeComponent Geometry=boxvan.erf [watcher] Type=AttributeWatcherOfInt Attribute=VisualRepresentation SimulationShouldExecute=1 [damageappearance] Type=SwitchComponent Input=Watcher Child=LOD [locator] Child=LightSwitch Child=DamageAppearance