SetLightColor
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
− | Set light color. Accepts two arguments | + | {{lua-function|setLightColor|object, color}} |
+ | |||
+ | Set light color. Accepts two arguments, light object and an RGB table. | ||
Example: | Example: |
Revision as of 18:26, 8 February 2014
setLightColor(object, color)
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})