Download

Create weather with random integers - not working ?

Hi,

I created a weather system wich is intended to work this way : Every amount of time (here 5 for debugging purposes) the system cheks if it’s raining or not. If not, a random integer is drawn. If this random int is greater than my “weather_change_cap” (=50) it starts to rain (and i’m playing the sound).

But it’s not working. It is totally random : sometimes it’s raining but the random int is 3, and sometimes it’s not even if the random int is 78 (for example).

Here’s my blueprint (I put it in the game mode blueprint).

Could someone help me please ?

Thanks !