Class: particle
Particle playback action.
Source
C++ class particle
Custom Constructor
particle
Remarks
Bone-attached particles require the controlled object visual to contain the requested bone. Position-only particles use world coordinates.
Extends
Constructors
Constructor
ts
new particle(
particle_to_run: string,
particle_params?: particle_params,
auto_remove?: boolean): particle;Create a particle action.
Parameters
| Parameter | Type | Description |
|---|---|---|
particle_to_run | string | Particle effect name. |
particle_params? | particle_params | Optional transform parameters. |
auto_remove? | boolean | Whether the particle should be removed after playback. |
Returns
particle
Overrides
Constructor
ts
new particle(
particle_to_run: string,
bone_name: string,
particle_params: particle_params,
auto_remove: boolean): particle;Create a particle action attached to a bone.
Parameters
| Parameter | Type | Description |
|---|---|---|
particle_to_run | string | Particle effect name. |
bone_name | string | Bone name. |
particle_params | particle_params | Transform parameters. |
auto_remove | boolean | Whether the particle should be removed after playback. |
Returns
particle
Overrides
ts
EngineBinding.constructorMethods
completed()
ts
completed(): boolean;Returns
boolean
Whether particle playback is complete.
set_angles()
ts
set_angles(vector: vector): void;Set particle angles.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | vector | Angles. |
Returns
void
set_bone()
ts
set_bone(bone_id: string): void;Set attached bone.
Parameters
| Parameter | Type | Description |
|---|---|---|
bone_id | string | Bone name. |
Returns
void
set_particle()
ts
set_particle(value1: string, value2: boolean): void;Set particle effect and auto-remove flag.
Parameters
| Parameter | Type | Description |
|---|---|---|
value1 | string | Particle effect name. |
value2 | boolean | Whether the particle should be removed after playback. |
Returns
void
set_position()
ts
set_position(vector: vector): void;Set particle position.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | vector | Position. |
Returns
void
set_velocity()
ts
set_velocity(vector: vector): void;Set particle velocity.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | vector | Velocity. |
Returns
void
Properties
__name
ts
readonly __name: string;LuaBind instance constructor name.
Inherited from
__name
ts
readonly static __name: string;LuaBind class constructor name.