What it does
light.createDirectional creates a Directional in light. It takes id, dirX, dirY and dirZ.
Signature
light.createDirectional(id, dirX, dirY, dirZ)Arguments
iddirXdirYdirZ
Example · generated
function start() { light.createDirectional('directional', 0, 2, 0);}light.createDirectional is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.