What it does
light.setColor sets Color on a light object. It takes id, r, g and b.
Signature
light.setColor(id, r, g, b)Arguments
idrgb
Example · generated
function start() { light.createPoint('point', 0, 2, 0); light.setColor('point', 1, 0.8, 0.4);}light.createPoint is there to give the call something to act on; light.setColor is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.