datablock LightningData(MyLightningData)
{
a = 1; // A datablock needs to have at least one field (parser limitation)
// Optional fields:
// strikeSound = ...;
// strikeTexture[0] = ...;
// ...
// strikeTexture[7] = ...;
// thunderSounds[0] = ...;
// ...
// thunderSounds[7] = ...;
};
new Lightning(MyLightning)
{
datablock = MyLightningData;
// Optional fields:
// boltStartRadius = ...;
// color = ...;
// fadeColor = ...;
// strikeRadius = ...;
// strikesPerMinute = ...;
// strikeWidth = ...;
// useFog = ...; // only for bitmaps
};
MyLightning.strikeObject(object);
MyLightning.strikeRandomPoint();
MyLightning.warningFlashes(?);