(03-29-2011, 03:03 AM)MrBigzy Wrote: I'm not sure if it would work, but you could use global variables. I have a feeling it wouldn't though.
Setting AmbientLightIntensity = ambientLight in the game.cfg and then add AddGlobalVarFloat("ambientLight", 0.5); in the script for the first map gives the same result as setting the intensity to 0, no nightvision.
Is that how you meant?
@palistov
Well you can work around the sanity problem by adding a function that slowly drains your sanity when in dark areas.. But that is a lot of extra scripting :/