Lightning

Lightning

Classnames: weather_lightning_start, weather_lightning_end
Purpose: traps
H2 Code: weather.hc
To generate `lightning' (really, long sparks) you need a weather_lightning_start entity which targets a weather_lightning_end or target_null entity (only one end per start).

Fields for weather_lightning_start

target Value is a name, which is also the targetname value for a weather_lightning_end entity.
wait Value is a number; if -1 (default), the lightning fires when triggered, otherwise repeats at interval specified by the value (secs).
lifespan Value is a number, how long it lasts (secs).
targetname Value is a name, the target-value for the lightning's trigger.
noise According to the weather.hc code, value 1 means no noise, value 2 noise (default), but I can't get this field to do anything. Lightning seems to be silent, except when it does damage, unless the spawnflags-value is 3 (!!).
spawnflags Value 3 causes lightning to make a noise when first triggered (but not subsequently). The weather.hc code is a bit confusing, dunno what's going on,

Fields for weather_lightning_end

targetname Value is the target value for the matching weather_lightning_start entity

Back to the list.