A basic package allowing for easy control over precipitation / lightning.
Download from wally, then call:
SkyService.new()
After this is called it should be usable just by requiring the package anywhere.
To determine whether to render precipitation it will shoot raycasts upwards from your position to try and find a ceiling.
local ceilingCastParams = RaycastParams.new()
SkyService.CoverageCheckDistance:Set(100) -- sets how far up it will check for a ceiling, in this case 100 units
SkyService.CoverageParams:Set(ceilingCastParams) -- sets the raycastParams for the raycasts
Should you want to pause the effects (like for say a loading screen / UI) you can do so:
SkyService.Enabled:Set(false) -- disables
SkyService.Enabled:Set(true) -- enables
local isEnabled = SkyService.Enabled:Get() -- retrieves current value
For each effect you can pass a number from 0 to 1, with 1 being full throttle, and 0 basically turning it off
Drops raindrop particles + plays sound + adds splash fx to the screen
SkyService.Rain:Set(1) -- full rain
SkyService.Rain:Set(0.5) -- light rain
SkyService.Rain:Set(0) -- no rain
Drops snowflake particles
SkyService.Snow:Set(1) -- blizzard
SkyService.Snow:Set(0.5) -- gentle snow
SkyService.Snow:Set(0) -- no snow
Currently under repair and doesn't do anything.