Difference between revisions of "DCS func setFogAnimation"
From DCS World Wiki - Hoggitworld.com
Line 26: | Line 26: | ||
The speed at which the visibility and thickness changes is based on the time between keys and the values that visibility and thickness are being set to. | The speed at which the visibility and thickness changes is based on the time between keys and the values that visibility and thickness are being set to. | ||
+ | |||
+ | |||
+ | When the function is passed an empty table {} or nil the fog animation will be discarded and whatever the current thickness and visibility are set to will remain. | ||
|rtnType= | |rtnType= | ||
Line 33: | Line 36: | ||
|reqType1= table | |reqType1= table | ||
− | |reqName1= fogAnimationKeys | + | |reqName1= fogAnimationKeys/discard |
|reqType2= | |reqType2= | ||
Line 61: | Line 64: | ||
}) | }) | ||
+ | The following will discard the animation resulting in whatever the current fog settings are to become static. | ||
+ | |||
+ | world.weather.setFogAnimation({}) | ||
Line 67: | Line 73: | ||
|notes= | |notes= | ||
+ | |||
+ | |||
}} | }} | ||
[[Category:Singleton Functions|setFogAnimation]] | [[Category:Singleton Functions|setFogAnimation]] | ||
[[Category:Game Patch 2.9.10|setFogAnimation]] | [[Category:Game Patch 2.9.10|setFogAnimation]] |