Page 1 of 1

API Request: option to turn off lightning warnings on a surface

Posted: Tue Jan 21, 2025 3:11 am
by kodacoda
I tried modding a variation of lightnings and lightning attractors, in which lightning prototypes would be used without graphics to cause damage triggered by a boompuff explosion, the idea was creating an explosion shield (lightning attractor prototype) that allows you to harvest boompuffs without damaging structure around it, the lightning/lightning attractor pairs were perfect, if the shield takes energy, the attractor has the interface to consume it, and I can think of more applications to this, like shields that protect against specific projectiles, just make the projectile call for a lightning instead of triggering a AreaTriggerItem for damage.

The issue is that this means those entities would only need to cover a part of the surface, not the whole built area, but the whole surface shows lightning warnings once you set up a lightning generator for it. Would be nice to have a hide_lightning_warnings property in the LightningProperties type.

Re: API Request: option to turn off lightning warnings on a surface

Posted: Fri May 09, 2025 1:42 pm
by snouz
+1

Instead of just on/off, I suggest being able to set the warning icon based on lightning type. That way, you can make it transparent, or another type of icon.

Lightning has a great potential to become a ton of things for modded planets. e.g. on a Dune project, we might plan to use that system for worms.

Re: API Request: option to turn off lightning warnings on a surface

Posted: Fri May 09, 2025 8:16 pm
by Schaniqua
+1 this, I havent found any way to remove the warning icons either, and a setting for lightning type or on/off would be very appreciated. Thank you.