Jump to content

Recommended Posts

You can probably check with a

if TheWorld.state.israining then 

inst.components.health:SetRegen(amount, ticks)

else

inst.components.health:StopRegen()

end

Just create a local function and run it from either DoPeriodicTask(ticks, function) or maybe (and I haven’t tested it) WatchWorldState(“weather”, function)

Also it will stop all sources of regen (example: jellybeans) so look into wurt’s lua file to figure out how their when wet regen function works

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...