Hi R.E.Z.
Sorry I miss read your original post. That code I posted is to get back to daylight settings.
Delete it as it wont fixed the problem.
After reading your posts again. I think.
You are talking about, after you take the goggles off, its still dark, but the weapons are shaded still and you just want the weapons to show up better.
The issue is the two fog settings (nearest and distance) its just that the weapons are under the fog layers still.
I have just attached a snippet of code and the areas to change, as I am not the writer of the original code and I don't think I can publish it here.
So keep adjusting the setting until you are happy with it.
Look for the area like this and adjust the settings
Its in the first block of settings. This is the start up area before you put the goggles on.
----------------------------------------------------
--starts map as night time
SetFogNearest(1) and try (70) ---- this valve must be lower than
SetFogDistance(20) and try (75) --- this value
----------------------------------------------------
Then Look for the area like this and adjust the settings
Its in the last block of settings. This is where you take the goggles off.
----------------------------------------------------
elseif g_KeyPressE == 1 and pressed == 0 and nightvision_on == 1 then
nightvision_on = 0
HideImage(0)
imagenumber = 0
pressed = 1
SetFogNearest(1) and try (70) ---- this valve must be lower than
SetFogDistance(20) and try (75) --- this value
And delete that code i gave you for the exit function as it is not needed
Try that and see what happens, also because the fog distance have been changed it will appear lighter.
So you will have to decrease the colour setting in the same areas to make it darker, just play with it until your happy.
And the SetFogIntensity(40) wont work as it is not in the global.lua script for some reason, that's why you are getting an error, I get the same error.
I'm only new to GG as well. So I am not sure how long its been missing.
I will keep an eye on this post if you need any further help.
I may be old, but at least my memory still ....hmmm
Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)