1
Your scripts / Re: New rain script
« on: February 25, 2021, 09:46:16 pm »
Hi,
I am no lua expert but it looks as though timers is not getting any value assigned to it.
Have you tried snow or hail, do they throw up errors as well?
I assume you are calling require("scripts/weather/rain_manager") from your game_manager script otherwise you wouldn't get an error.
If you copied the scripts across they should work so what else have you got in your map.lua script?
The scripts work for me in my game so I am at a loss.
I am no lua expert but it looks as though timers is not getting any value assigned to it.
Have you tried snow or hail, do they throw up errors as well?
I assume you are calling require("scripts/weather/rain_manager") from your game_manager script otherwise you wouldn't get an error.
If you copied the scripts across they should work so what else have you got in your map.lua script?
The scripts work for me in my game so I am at a loss.