Page 1 of 1

Add event for lightning striking a building

Posted: Mon Apr 28, 2025 6:36 pm
by kotrenn
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

Posted: Wed May 07, 2025 1:04 pm
by Genhis
You should be able to use LightningPrototype::strike_effect together with ScriptTriggerEffectItem.

Re: Add event for lightning striking a building

Posted: Wed May 07, 2025 4:33 pm
by Bilka
It would be nice to have a dedicated event with more information than a script trigger.