- Reproducable without other mods?
- should activate only when compatible lamps are present in terrain or mission (and module to manual activate it) - alternative would be init EH in the object class with isNil check for already running
- check sun state every 0.25s seems too much
- not checking for CUP_lampState change first
- positionCameraToWorld and pos check every 0.5s seems too much (could be made based on speed/vehicle type one is in)
- nearObjects check every 0.5s (relevant when flying fast) instead of caching relevant object positions
- (minor) not saving both texture paths to variable (instead _m = format ['ca\Structures\Misc_Powerlines\Data\powlines_%1.rvmat',['multi1','light1'] select CUP_lampState];)
- (minor) not saving damaged texture path to variable