createPlayerParticles
Create a particle effect attached to a player.
Syntax
engine.effects.createPlayerParticles(player, options, withId);
Parameters
Name | Type | Description |
---|---|---|
player | number or PlayerManager | The player to attach the particles effect to. |
options (optional) | ParticlesOptions | The options for the particles effect. |
withId (optional) | string | The ID of the particles effect to create. |
Returns
ParticlesManager
- The particles manager.
Example
const particles = engine.effects.createPlayerParticles(player, {
position: [0, 2, 0],
amount: 50,
});
Available on: Client