What it does
particles.setEmitter sets Emitter on a particles object. It takes id, x, y and z.
Signature
particles.setEmitter(id, x, y, z)Arguments
idxyz
Example · generated
function start() { particles.create('main', 10); particles.setEmitter('main', 0, 2, 0);}particles.create is there to give the call something to act on; particles.setEmitter is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.