Add event for lightning striking a building
Add event for lightning striking a building
I was wanting to try out a mod where a crafting building activated based on lightning striking it. From what I can understand, this would require adding an event to the API, which Lightning Collectors or other similar structures could respond to.
Re: Add event for lightning striking a building
You should be able to use LightningPrototype::strike_effect together with ScriptTriggerEffectItem.
Re: Add event for lightning striking a building
It would be nice to have a dedicated event with more information than a script trigger.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.