SetLightColor
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 11: | Line 11: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Light]] |
Revision as of 18:38, 4 February 2014
Set light color. Accepts two arguments: Light object and an RGB table.
Example:
Light = getLight("DayNightLight") -- Set to red setLightColor(Light, {255, 0, 0}) -- Set to green setLightColor(Light, {0, 255, 0}) -- Set to cyan setLightColor(Light, {0, 255, 255})