Click or drag to resize

WeatherMakerThunderAndLightningScript Fields

The WeatherMakerThunderAndLightningScript type exposes the following members.

Fields
  NameDescription
Public fieldCloudLightningChance
The chance lightning will simply be in the clouds with no visible bolt
Public fieldEndXVariance
The variance of the end point in the x direction. Can be absolute or percentage depending on 2D or 3D mode.
Public fieldEndYVariance
The variance of the end point in the y direction. Does not get applied if the lightning hit the ground. Can be absolute or percentage depending on 2D or 3D mode.
Public fieldEndZVariance
The variance of the end point in the z direction. Can be absolute or percentage depending on 2D or 3D mode.
Public fieldExternalIntensityMultiplier
External intensity modifier to reduce amount of lightning. For example if a player moves indoors or in a cave, you could set this to 0 to turn off lightning.
Public fieldGroundLightningChance
The chance that non-cloud lightning will hit the ground
Public fieldLightningBoltScript
Lightning bolt script
Public fieldLightningForcedVisibilityProbability
Probability that lightning strikes will be forced to be visible in the camera view. Even if this fails, there is still a change that the lightning will be visible. Ignored for some modes such as 2D.
Public fieldLightningIntenseProbability
Probability (0-1) of an intense lightning bolt that hits really close. Intense lightning has increased brightness and louder thunder compared to normal lightning, and the thunder sounds plays a lot sooner.
Public fieldLightningIntervalTimeRange
Random interval between strikes.
Public fieldStartXVariance
The variance of the end point in the x direction. Can be absolute or percentage depending on 2D or 3D mode.
Public fieldStartYBase
Starting y value for the lightning strikes. Can be absolute or percentage of visible scene height depending on 2D or 3D mode.
Public fieldStartYBaseCloudOnly
Starting y value for the cloud only lightning strikes. Can be absolute or percentage of visible scene height depending on 2D or 3D mode.
Public fieldStartYVariance
The variance of the end point in the y direction. Does not get applied if the lightning hit the ground. Can be absolute or percentage depending on 2D or 3D mode.
Public fieldStartZVariance
The variance of the end point in the z direction. Can be absolute or percentage depending on 2D or 3D mode.
Public fieldThunderSoundPlayed
Fires when a thunder sounds plays. Parameters are the audio clip and intensity.
Public fieldThunderSoundsIntense
Sounds to play for intense thunder. One will be chosen at random for each lightning strike.
Public fieldThunderSoundsNormal
Sounds to play for normal thunder. One will be chosen at random for each lightning strike. Depending on intensity, some normal lightning may not play a thunder sound.
Public fieldVolumeModifier
Volume modifier for thunder
Top
See Also