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