Hi Guys ,+
the fog script i wrote a few years ago now doesnt seem to work.
I tried to update it to no avail......any ideas >?
Thx
UNIRD12B
-- DESCRIPTION: change fog settings
--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])
SetFogDistance(change_amount[e])
ActivateIfUsed(e)
plyr_in_zone[e] = 1
end
else
plyr_in_zone[e] = 0
end
end
Let\'s actually make something happen with this one !