How is the snow effect controlled?
Several scenarios of Bulge have snowing effect, I tried using its lighting.txt but don't seem to work.
Snow effect
Moderators: Slitherine Core, BA Moderators
Re: Snow effect
There is a script function that can be used to do it:
SetWeather(1); //rain
SetWeather(2); //snow
SetWeather(1); //rain
SetWeather(2); //snow
Re: Snow effect
Thank you!.
-
- Major - Jagdpanther
- Posts: 1019
- Joined: Fri Apr 30, 2010 3:13 am
Re: Snow effect
Under which function would you place this script? This one?:
FUNCTION PreBattleSetup()
I did a search for this string:
SetWeather(1);
but could not find it in any script. I am sure I have seen rain in the missions. Odd that I could not find the text string.
FUNCTION PreBattleSetup()
I did a search for this string:
SetWeather(1);
but could not find it in any script. I am sure I have seen rain in the missions. Odd that I could not find the text string.
-
- Major - Jagdpanther
- Posts: 1019
- Joined: Fri Apr 30, 2010 3:13 am
Re: Snow effect
Ok - found it. Yes, goes in the function I list above.
-
- 2nd Lieutenant - Panzer IVF/2
- Posts: 689
- Joined: Sun Oct 16, 2011 3:53 pm
- Location: Canada
- Contact:
Re: Snow effect
Odd, I've added the SetWeather(1) to my PreBattleSetup function but I don't get rain?
I also have include"Functions.bsf"; so I'm not sure what I am missing?
I also have include"Functions.bsf"; so I'm not sure what I am missing?
Re: Snow effect
Take a look at the Vitality scenario, there is a random, every turn , to make rain or not.
SetWeather(Rand(0,1);
set the weather. 0 = none, 1 = rain. 2 = snow.
SetWeather(Rand(0,1);
set the weather. 0 = none, 1 = rain. 2 = snow.
-
- 2nd Lieutenant - Panzer IVF/2
- Posts: 689
- Joined: Sun Oct 16, 2011 3:53 pm
- Location: Canada
- Contact:
Re: Snow effect
Thanks Enric!
Excellent scripting...my error was that I had the SetWeather in the PreBattleSetup when it should be in the StartTurn (for anyone else who has this problem).
Excellent scripting...my error was that I had the SetWeather in the PreBattleSetup when it should be in the StartTurn (for anyone else who has this problem).
-
- Colonel - Fallschirmjäger
- Posts: 1423
- Joined: Fri Nov 05, 2010 12:02 am
- Location: Bradenton, Florida
Re: Snow effect
random, very clever idea.enric wrote:Take a look at the Vitality scenario, there is a random, every turn , to make rain or not.
SetWeather(Rand(0,1);
set the weather. 0 = none, 1 = rain. 2 = snow.