Jump to content
  • 0

Snowstorm in specific area


Airwaves Man

Question

Hey guys,

Im trying to create a special weather behavoir for an specific area. I want a snowstorm at a defined position. For example: Stary and a 500m radius. So everybody who entered that area  see snow and fog. Of course when the player leaves that area the weather settings should changed back to normal.

Ive tried to get the area defined by the mission.sqm. That works but only for the activation and the whole map starts to snow. How can I set up only one area with snow? There is no need that the area starts snowing when the players enters the area, it can snow the whole time there.

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
43 minutes ago, A Man said:

Thx for your reply mate, Im not really sure what you mean. I can use a trigger that says when a player enter the area it starts to rain by useing setRain 1 but I cant do it with setSnow 1 because it is an extra addon and arma does not understand the command? Can you give me a hint or example what you mean?

try it:

storm.sqf

Spoiler

_storm = false;

stormpos = [[6325.6772,7807.7412,0]];

radius = 500;

{

if ((player distance _x) < radius) then {

_storm = true;

};

} foreach stormpos;

if (_storm) then {

storm code here

};

 

 

Link to comment
Share on other sites

  • 0

Yeah mate, Ive tested two things. The first i tried to get the rain. It works well. When you enter the area it rains, when you leave the weather changed to no rain and another overcast. My second try was the to execute the file on expActiv when a player enters the area. Of course it was just a test and it worked very well. But I was not able to limit the storm to the area the players entered before.

Ive exuted your sqf now from my sqm, I did it from the init before. This time it works on expActiv but for the whole map.

Currently I use this.

 

Quote

 



_storm = false;

stormpos = [[9253, 17574,0]];

radius = 400;

{

if ((player distance _x) < radius) then {

_storm = true;

};

} foreach stormpos;

if (_storm) then {


setviewdistance 900;
bis_fog = 0.8;
 
setviewdistance 900;
5 setovercast 0.9;
5 setrain 1;
5 setfog bis_fog;


};

 

Quote

		class Item7
		{
			position[]={9253,0,17574};
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="snow";
			expCond="(player distance snow) < 400;";
			expActiv=execVM "scripts\snow\snow.sqf";
			//expDesactiv="3 setOvercast 0.05; 3 setRain 0;";
			class Effects
			{
			};
		};

 

 

Link to comment
Share on other sites

  • 0

@A Man 

whats about change it in your mission.sqm

Spoiler

class Item7
        {
            position[]={9253,0,17574};
            a=400;
            b=400;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="snow";
            expCond="(vehicle player) in thislist;";
            expActiv="snow = [] execVM ""scripts\snow\snow.sqf"";";
            expDesactiv="terminate snow;3 setOvercast 0.05; 3 setRain 0;";
            class Effects
            {
            };
        };       

any way i was thinking u are using a player and a location as a trigger to start the storm... but you dont define wheres the storm must be.

Link to comment
Share on other sites

  • 0

@juandayz

Ive tried a lot things now. Thx for your help. It wont work the way I want. Setting rain and viewdistance worked as expected. I tried both version from you. I didnt keep in mind that the weather when I changed it for a single player, it is client side for each player, so the other players wil not see the change. After thiking a lot about I got a better idea. So thanks again mate.

Link to comment
Share on other sites

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
  • Discord

×
×
  • Create New...