SetLightColor

(Difference between revisions)
Jump to: navigation, search
(Created page with "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 t...")
 
Line 9: Line 9:
 
  -- Set to cyan
 
  -- Set to cyan
 
  setLightColor(Light, {0, 255, 255})
 
  setLightColor(Light, {0, 255, 255})
 +
 +
[[Category:Lua scripting]]

Revision as of 18:09, 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})
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox