Jump to content
  • 0
Sign in to follow this  
A Man

Snowstorm in specific area

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.

 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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?

Share this post


Link to post
Share on other sites
  • 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

};

 

 

Share this post


Link to post
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
			{
			};
		};

 

 

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By Nytrex
      Hello Guys!
      The title says it all
      I am trying to add the white Ghuillie Skin to my Server, but i am not really able to do that, and i found nothing arround google to help me out!
      Maybe you could give me a way to do that? :D
    • By Drokz
      Hey.
      Im looking for a Snowfall addon.

      If anyone got a working one pls let me know
       
      Thanks
    • Guest
      By Guest
      Hy,
      Thnks for checking out this post.
       
      Is it possible/ or is there a way to get the ground covered in snow, on Chernarus or on any other maps.
      I discussed about this with a dude on another topic off mine, but he didnt know a way to cover up the ground with snow, or parts from it.
      I know there is a map called Thirsk, but the post is already two years old and no one is hosting a server with this map..
       
      Link to the post of the map: http://forums.dayzgame.com/index.php?/topic/102557-dayz-thirsk-custom-map-current-version-13-server-files-included-now-on-dayzcommander/
       
      Any help would be great, even help with falling snow, cuz i saw a Tutorial of falling snow and i didn't understand any thing he tried to explain...
       
      Link to the tutorial: http://opendayz.net/threads/tutorial-snow-added-to-dynamic-weather.15294/
       
      So i hope i will be able to install Thirsk, and other wise i hope there is a way to cover up the ground with snow, on Chernarus
       
      Greets
    • By blackwiddow
      Hi guys.
       
      I am desperately looking for help to add the Eagle Wings effects to my Epoch server.
       
      I have added so much custom stuff that this would really round it off nicely.
      I tried but it ended up just causing the server to search for hosts.
       
      Is it possible?
       
      This is the link to the effects I would like to add to my server...
       
      http://www.kylania.com/ex/?p=128
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...