What it does
light.setIntensity sets Intensity on a light object. It takes id and v.
Signature
light.setIntensity(id, v)Arguments
idv
Example · generated
function start() { light.createPoint('point', 0, 2, 0); light.setIntensity('point', 0.5);}light.createPoint is there to give the call something to act on; light.setIntensity is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.