function setfog_init(e) --calling the function setfog end function setfog_main(e) --creating a function called setfog Prompt("setfog script running") if g_Entity[e]['plrinzone']==1 then --checks to see if player is in the designated trigger zone SetFogBlue(99) --changes level of blue in the fog to 99 SetFogIntensity(100) --changes intensity of fog to 100 end end