Hi guys ,
I'm sure this is already an easy thing to do for MOST of you old
pros in here , but , for many of us , a lot of the , even very basic things
can appear complex ........so...I came up with a little .lua script that only needs to use
a simple trigger to be placed anywhere in the map that you'd like the AMBIENT LIGHT LEVEL
to change....such as going from an outside location and entering a building or a cave .
This greatly decreases the need to use a number of DYNAMIC LIGHTS in order to achieve
a specific ambient feel.
Now you can take the basic code and just change the name of it as per the lua rules and you can make
any number of light levels to use as you like where you like...as there is ONLY ....ONE......number that has to be changed.
I'm not going to go in to great detail on how the code works as it is EXTREMELY COMPLEX in nature ,as it is 8 lines long.
( P.S.-----SARCASM !
)
Check out the video here of 8 basic ambient light level changes.
and I will attach the code below....IF it can be useful to anyone else..it's YOURS...IF your a genius already and DON'T need it
no need to come on and tell me and be a critic.
https://www.youtube.com/watch?v=x3wbdfSl-Fo&feature=youtu.be
SCRIPT STARS HERE...
..............................................................................................
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
function lightzone16_init(e)
end
function lightzone16_main(e)
if g_Entity[e]['plrinzone']==1 then
SetAmbienceIntensity(16)
ActivateIfUsed(e)
end
end
............................................
thx
UNIRD12B
Let\'s actually make something happen with this one !