Scripts /
FREE .lua file to make changes to the FOG DENSITY anywhere in the map , using a triggerzone and this file.

YOUR RIGHT.......I got it working
and will release the setfogintensity.lua right now now.

thanks again for you amazing effort

ok so....here is the code to make changes in the DENSITY of the fog layer in any
specific part of the map in order to effect a change in mood...instructions are contained right within the .lua file.
........................................................

-- in order to use this code ,save this file with the name fogzoneintensity.lua
-- just add in a triggerzone anywhere you'd like to
-- have an overall change in the fog intensity level , such as diferent map areas
-- or going inside to outside or vice versa
-- just add this .lua file in to the triggerzone and in Properties , in the NAME field
-- put in the number value (1-255) of the fog intensity you'd like to have
-- at that part of the map
local change_amount = {}
local plyr_in_zone = {}
function fogzoneintensity_init_name(e,name)
change_amount[e] = tonumber(name)
plyr_in_zone[e] = 0
end
function fogzoneintensity_main(e)
if g_Entity[e]['plrinzone']==1 then
if plyr_in_zone[e] == 0 then
SetFogIntensity(change_amount[e])
ActivateIfUsed(e)
plyr_in_zone[e] = 1
end
else
plyr_in_zone[e] = 0
end
end

here now too is a brief video showing the basic effect change using the .lua and a triggerzone

But, for future reference, there is a specific forum section for posting scripts in, you're better off posting them there as people will find it easier to find them in the future when this post has been buried under a lot of other posts.

Also, there are issues with some web browsers, when you copy/paste from the code box it adds extra "invisible" characters which breaks the scripts, so it's always best to also upload a copy of the actual script file in an attachment for people to download

Quote: "Also, there are issues with some web browsers, when you copy/paste from the code box it adds extra "invisible" characters which breaks the scripts, so it's always best to also upload a copy of the actual script file in an attachment for people to download "

I can not get this lua file to work. All I get is a lua syntax error during a test run and my mouse disappears forcing me to press esc to exit GG.
oh well...