Jump to content
Sign in to follow this  
1in1class

Environment Effects Modules

Recommended Posts

Yes iv seen this in the Modules and iv looked on the forums and did not see anything on info for the Environment Effects and what it does. Iv would like to know how to use it and if it makes an sand storm effect in OA. Also there is an color effect one too, would like to know about that also. Any info would be nice.

Share this post


Link to post
Share on other sites

Im trying to get it but iv not got it going, iv put this into the int this setvariable ["intensity",0.8]; and nothing happen. Im trying to make it to where i can use the dust effect. How would i go about putting this in the int line? If can give an example. Thank you.

Edited by 1in1class

Share this post


Link to post
Share on other sites

The dust effect requires several conditions be met first, make sure they are:

Dust

* not winter: March - September

* overcast < 0.5

* abs _daytime >= 0.1

The _daytime value is determined by this formula:

_daytime = 0.5 - abs(daytime - 12) / 12

Personally I prefer to use the new sandstorm function:

[player,0.2,0.8] call bis_fnc_sandstorm;

No need to worry about what month it is, or time of day.

Share this post


Link to post
Share on other sites
The dust effect requires several conditions be met first, make sure they are:

Dust

* not winter: March - September

* overcast < 0.5

* abs _daytime >= 0.1

The _daytime value is determined by this formula:

_daytime = 0.5 - abs(daytime - 12) / 12

Personally I prefer to use the new sandstorm function:

[player,0.2,0.8] call bis_fnc_sandstorm;

No need to worry about what month it is, or time of day.

Iv tryed that out also and did not get it working iv put [player,0.2,0.8] call bis_fnc_sandstorm; in the module Int line, just put the Environment Effect module on the map then put that in the Int line right?

Share this post


Link to post
Share on other sites

No, just create a "init.sqf" file in your mission folder. It loads automatically when mission starts. Put the code in there. Also, the first line should be "waitUntil {!isNil 'bis_fnc_init'};" ... don't put the outer quotes. I'm typing this on a phone, I can clarify later on if you want.

Share this post


Link to post
Share on other sites
No, just create a "init.sqf" file in your mission folder. It loads automatically when mission starts. Put the code in there. Also, the first line should be "waitUntil {!isNil 'bis_fnc_init'};" ... don't put the outer quotes. I'm typing this on a phone, I can clarify later on if you want.

Thanks for the info, i just thought you put the module on the map and that in the the int line. Thanks for the help.

Share this post


Link to post
Share on other sites

Sorry I should clarify. On the effects module just putting it down should work. You can put init code in there to alter the effects. Personally I can't get dust to work, but I've seen other parts of it work. I was testing it on Shapur.

Share this post


Link to post
Share on other sites

The snow is also nice, though it tends to rain while its snowing which is odd, so you have to force the rain off yourself manually which is a bit annoying, and with no way to detect if its snowing or not you cant do a "If snowing then norain else rainpossible".

Still, its pretty cool.

Share this post


Link to post
Share on other sites

@AZCoder

Np, yhaa i cant get it to work also. Iv try init code in the module too and could not get the dust to work.

@NeMeSIS

Iv try to get it working with just the module put on the map and cant get it at all. What are you putting in the Int line?

Edited by 1in1class

Share this post


Link to post
Share on other sites
@NeMeSIS

Iv try to get it working with just the module put on the map and cant get it at all. What are you putting in the Int line?

Nothing, i just make sure i put the mission settings in the correct positions for snow. I cant be bothered to look on the previous page now, but it was something like overcast >0.5 and the month has to be in winter (November-feb i guess)

Share this post


Link to post
Share on other sites

Snow is easy.

Make sure it's Winter time (as NeMeSiS stated), make the weather lousy using the slider (rainy icon or worse), place the module with "0 setRain 0;" in the init.

Definitely one of my fav modules in OA :)

Share this post


Link to post
Share on other sites

@AnimalMother92 @NeMeSiS

What about the dust? I just cant get the dust going.

Share this post


Link to post
Share on other sites
@AnimalMother92 @NeMeSiS

What about the dust? I just cant get the dust going.

Dont know, AZCoder posted the conditions for it on the previous page, no further typing needed

For that sandstorm thing i assume you would need to place the functions module(Whatever its called) in addition to what he posted.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×