Tile - YParticle - Play Particle – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 10: Line 10:


==== particle ====
==== particle ====
Target Particle Effect


==== position ====
==== position ====
Position to play the effect at


==== rotation ====
==== rotation ====
Rotation of the effect


==== scale ====
==== scale ====
Scale of the effect
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===


Allows to '''play''' '''particle effect''' at given position. Particle effect will '''play''' only '''once'''.
Allows to '''play''' '''particle effect''' at given position.
 
=== Notes ===
 
* Particle effect will '''play''' only '''once'''.


== Play Particle(Particle template, Position, Rotation) ==
== Play Particle(Particle template, Position, Rotation) ==
Line 33: Line 49:


==== rotation ====
==== rotation ====
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===


Allows to '''play''' a '''particle effect''' from a '''particle effect template''' at given position once.
Allows to '''play''' a '''particle effect''' from a '''particle effect template''' at given position once.
== Play Particle(Particle template, Entity, Position, Rotation) ==
[[File:YlandsTile-1307.png]]
<pre>static play(particleTemplate: YParticleEffectTemplate, entity: YEntity, position: YVector3, rotation: YVector3): void;</pre>
=== Parameters ===
==== particleTemplate ====
==== entity ====
==== position ====
==== rotation ====
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]
=== Description ===
Allows to '''play''' '''particle effect''' on selected entity.





Revision as of 16:29, 30 March 2022

Play Particle(Particle, Position, Rotation, Scale)

YlandsTile-170.png

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

Parameters

particle

Target Particle Effect

position

Position to play the effect at

rotation

Rotation of the effect

scale

Scale of the effect

Availability

Server

Description

Allows to play particle effect at given position.

Notes

  • 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

Availability

Server

Description

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

Play Particle(Particle template, Entity, Position, Rotation)

YlandsTile-1307.png

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

Parameters

particleTemplate

entity

position

rotation

Availability

Server

Description

Allows to play particle effect on selected entity.