Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
theend3r

setFog takes effect immediately?

Recommended Posts

I'm testing

120 setFog [0.95, 0.01, (getPosASL player) select 2];

run from .sqf via execVM and the change is immediate, not over 2 minutes.

 

Edit: It's the same from the console.

 

120 setFog [0.95, 0.01, (getPosASL player) select 2]; -> immediate change -> try 0 setFog [0.05, 0.01, (getPosASL player) select 2]; and then 120 setFog [0.95, 0.01, (getPosASL player) select 2]; again -> works as it should

 

It seems that fog isn't defined before the first use of setFog and once it is, it jumps immediately. I'm guessing this is due to some more advanced weather system implemented recently. Is there any better way to play with fog?

 

Edit2: Ok, got it to work using

0 setFog [_fog select 0, _fog select 1, (getPosASL player) select 2];

120 setFog [0.95, 0.01, (getPosASL player) select 2];

Share this post


Link to post
Share on other sites
Sign in to follow this  

×