Particle

Table to work with particles.

Create(particle: string, attach_type [?]: Enum.ParticleAttachment, entity [?]: CEntity): integer

Name
Type
Description

particle

string

Particle path

attach_type [?]

attach_type Attach type (default: Enum.ParticleAttachment.PATTACH_WORLDORIGIN)

entity [?]

Entity to own of the particle. If not specified, the local hero will be used. (default: Players.GetLocal())

Creates a particle and returns its index.


SetControlPoint(particle_index: integer, control_point: integer, value: Vector): nil

Name
Type
Description

particle_index

integer

Particle index

control_point

integer

Control point

value

Control point value

Sets the control point value of a particle.


SetShouldDraw(particle_index: integer, value: bool): nil

Name
Type
Description

particle_index

integer

Particle index

value

bool

set value

Enables or disables the drawing of a particle.


SetControlPointEnt(particle_index: integer, control_point: integer, entity: CEntity, attach_type: Enum.ParticleAttachment, attach_name: string|nil, position: Vector, lock_orientation: boolean): nil

Name
Type
Description

particle_index

integer

Particle index

control_point

integer

Control point

entity

Entity to attach

attach_type

Attach type

attach_name

string|nil

Attach name. See NPC.GetAttachment function

position

Control point position

lock_orientation

boolean

Lock orientation. No idea what it does

Sets the control point entity value of a particle.


SetParticleControlTransform(particle_index: integer, control_point: integer, position: Vector, angle: Angle): nil

Name
Type
Description

particle_index

integer

Particle index

control_point

integer

Control point

position

Control point position

angle

Control point angle

Sets the control point's position and angle.


Destroy(particle_index: integer): nil

Name
Type
Description

particle_index

integer

Particle index

Destroys the particle by index.

Last updated