Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable AmbientLight in a specific area?
Dalroc Offline
Member

Posts: 57
Threads: 2
Joined: Mar 2011
Reputation: 0
#4
RE: Disable AmbientLight in a specific area?

(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 :/
03-29-2011, 12:15 PM
Find


Messages In This Thread
RE: Disable AmbientLight in a specific area? - by Dalroc - 03-29-2011, 12:15 PM



Users browsing this thread: 1 Guest(s)