Skip to main content

createPlayerParticles

Create a particle effect attached to a player.

Syntax

engine.effects.createPlayerParticles(player, options, withId);

Parameters

NameTypeDescription
playernumber or PlayerManagerThe player to attach the particles effect to.
options (optional)ParticlesOptionsThe options for the particles effect.
withId (optional)stringThe ID of the particles effect to create.

Returns

Example

const particles = engine.effects.createPlayerParticles(player, {
position: [0, 2, 0],
amount: 50,
});

Available on: Client