GetLightIntensity
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
| Line 10: | Line 10: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Light]] | ||
Revision as of 18:38, 4 February 2014
Get the light intensity.
Light0 = getObject("Light0")
-- Scene update
function onSceneUpdate()
flash = getLightIntensity(Light0) -- you can rename flash to whatever you like
end
Advanced use in setLightIntensity over here : [[1]]