Lightning randomly hits entities on planets with lightning_properties.
If a lightning attractor is hit by lightning it will absorb the lightning hit for energy.
If a something that is not an attractor is hit by lightning it will be damaged by the strike.
EntityPrototypeLightningGraphicsSettruefalseSoundtruefalsefloattruefalseTriggertruefalseEffect that is triggered when lightning strikes something that is not a lightning attractor. Triggered before damage is applied.
TriggertruefalseEffect that is triggered when lightning hits a lightning attractor. Triggered after the attractor is charged by the lightning hit.
VectortruefalseVectortruefalsedoubletruefalseWhen lightning strikes something that is not a lightning attractor, this damage is applied to the target.
EnergytruefalseWhen lightning hits a lightning attractor, this amount of energy is transferred to the lightning attractor.
uint16truefalseMust be less than or equal to effect_duration.
uint16falsefalse