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