What it does
mesh.createLines creates a Lines in mesh. It takes id and a list.
Signature
mesh.createLines(id, points[])Arguments
idpoints[]
Example · generated
function start() { mesh.createLines('lines', [{ x: 0, y: 0, z: 0 }, { x: 1, y: 0, z: 0 }]);}mesh.createLines 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.