Skip to main content

playParticlesAtPosition

Play a particle effect at a specific position.

Syntax​

engine.effects.playParticlesAtPosition(position, options, withId);

Parameters​

NameTypeDescription
positionVector3Array or Vector3The position to play the particles at.
optionsParticlesOptionsThe options for the particles to create.
withIdstringThe ID of the particles effect to create. (optional)

Returns​

Example​

const particles = engine.audio.playParticlesAtLocation([0, 2, 0], {
amount: 50,
});

Available on: Client