-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- you can use this tiny script to control the darkness of the level when the -- player takes damage....you can vary the level . -- to use it , just place a trigger marker under the area where the player -- will start the game and add the damagelightlevel.lua file to the trigger. -- if we need more info or other variation of this,,,experiment or ask me. -- I'm NOT very good at this...but i try....jajajaajaj function damagelightlevel_init(e) end function damagelightlevel_main(e) SetGamePlayerControlRedDeathFog(0) SetGamePlayerControlHeartbeatTimeStamp(-1) if g_PlayerHealth == 80 then SetBrightness(-.1) -- working levels are from (-.5 )very dark to (.5) very bright end end if g_PlayerHealth == 60 then SetBrightness(-.2) -- working levels are from (-.5 )very dark to (.5) very bright end end if g_PlayerHealth == 40 then SetBrightness(-.4) -- working levels are from (-.5 )very dark to (.5) very bright end end if g_PlayerHealth == 20 then SetBrightness(-.5) -- working levels are from (-.5 )very dark to (.5) very bright end end elseif g_PlayerHealth == 0 then SetBrightness(-.5) -- working levels are from (-.5 )very dark to (.5) very bright end end