WeatherMakerThunderAndLightningScript Fields |
The WeatherMakerThunderAndLightningScript type exposes the following members.
Name | Description | |
---|---|---|
![]() | CloudLightningChance | The chance lightning will simply be in the clouds with no visible bolt |
![]() | EndXVariance | The variance of the end point in the x direction. Can be absolute or percentage depending on 2D or 3D mode. |
![]() | EndYVariance | 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. |
![]() | EndZVariance | The variance of the end point in the z direction. Can be absolute or percentage depending on 2D or 3D mode. |
![]() | ExternalIntensityMultiplier | 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. |
![]() | GroundLightningChance | The chance that non-cloud lightning will hit the ground |
![]() | LightningBoltScript | Lightning bolt script |
![]() | LightningForcedVisibilityProbability | 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. |
![]() | LightningIntenseProbability | 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. |
![]() | LightningIntervalTimeRange | Random interval between strikes. |
![]() | StartXVariance | The variance of the end point in the x direction. Can be absolute or percentage depending on 2D or 3D mode. |
![]() | StartYBase | Starting y value for the lightning strikes. Can be absolute or percentage of visible scene height depending on 2D or 3D mode. |
![]() | StartYBaseCloudOnly | Starting y value for the cloud only lightning strikes. Can be absolute or percentage of visible scene height depending on 2D or 3D mode. |
![]() | StartYVariance | 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. |
![]() | StartZVariance | The variance of the end point in the z direction. Can be absolute or percentage depending on 2D or 3D mode. |
![]() | ThunderSoundPlayed |
Fires when a thunder sounds plays. Parameters are the audio clip and intensity.
|
![]() | ThunderSoundsIntense | Sounds to play for intense thunder. One will be chosen at random for each lightning strike. |
![]() | ThunderSoundsNormal | 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. |
![]() | VolumeModifier | Volume modifier for thunder |