Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

how to set weather to rain?

Share questions, scripts and tutorials related to the ScriptAPI in SFD.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Astolfo
Fighter
Fighter
Posts: 13
Joined: Tue Jan 21, 2020 9:00 pm
Started SFD: I forgot

how to set weather to rain?

Post by Astolfo » Tue Feb 23, 2021 12:11 am

i know about SetWeatherType, but idk what i need to write in value..
0 x
Hello world

User avatar
Shock
Superfighter
Superfighter
Posts: 312
Joined: Sun Mar 20, 2016 7:17 am
Title: Content-maker
SFD Account: Shock
Started SFD: Pre-Alpha 1.2.0.
Location: Belarus
Gender:
Age: 25
Contact:

Post by Shock » Tue Feb 23, 2021 9:57 pm

Public void Rain(TriggerArgs args){
Game.SetWeatherType(WeatherType.Rain)
}


Maybe not like this, but check if you can activate this with script trigger
1 x
-Content-maker.

User avatar
Astolfo
Fighter
Fighter
Posts: 13
Joined: Tue Jan 21, 2020 9:00 pm
Started SFD: I forgot

Post by Astolfo » Wed Feb 24, 2021 4:00 pm

Shock wrote:
Tue Feb 23, 2021 9:57 pm
Public void Rain(TriggerArgs args){
Game.SetWeatherType(WeatherType.Rain)
}


Maybe not like this, but check if you can activate this with script trigger
I didn't think it was that easy. I was just trying to do it without WeatherType in parenthesis. Thanks!
1 x
Hello world

Post Reply