Tile - YParticle - Play Particle – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Play Particle(Particle, Position, Rotation, Scale)

YlandsTile-170.png

static play(particle: YParticle, position: YVector3, rotation: YVector3, scale: number): void;

Parameters

particle

position

rotation

scale

Description

Allows to play particle effect at given position. Particle effect will play only once.

Play Particle(Particle template, Position, Rotation)

YlandsTile-796.png

static play(particleTemplate: YParticleEffectTemplate, position: YVector3, rotation: YVector3): void;

Parameters

particleTemplate

position

rotation

Description

Allows to play a particle effect from a particle effect template at given position once.