Buy Me a Coffee at ko-fi.com

Represents a particle that can be spawned and modified
Obtained by indexing the ParticleAPI
Exists as an object-oriented alternative to particles:addParticle()

Sets this particle color
Accepts and alpha value, but most particles do not support it
Default RGBA of 1

overload 1:
Particle.color(rgb: Vector3): Particle
typings.2002444080typings.1253495462
Method PropertyFluent DescriptionRepresentation
rgb accepts
Return Value
overload 2:
Particle.color(rgba: Vector4): Particle
typings.2002444081typings.1253495462
Method PropertyFluent DescriptionRepresentation
rgba accepts
Return Value
overload 3:
Particle.color(r: Number, g: Number, b: Number, a: Number): Particle
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
a accepts
Return Value

Gets this particle color

overload 1:
Particle.getColor(): Vector4
typings.2002444081
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this particle gravity

overload 1:
Particle.getGravity(): Number
typings.-1950496919
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this particle current lifetime

overload 1:
Particle.getLifetime(): Integer
typings.-672261858
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this particle position

overload 1:
Particle.getPos(): Vector3
typings.2002444080
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this particle power

overload 1:
Particle.getPower(): Number
typings.-1950496919
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this particle scale

overload 1:
Particle.getScale(): Number
typings.-1950496919
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this particle scale

overload 1:
Particle.getSize(): Number
typings.-1950496919
Method PropertyFluent DescriptionRepresentation
Return Value

Gets the velocity of this particle

overload 1:
Particle.getVelocity(): Vector3
typings.2002444080
Method PropertyFluent DescriptionRepresentation
Return Value

Sets this particle gravity

overload 1:
Particle.gravity(gravity: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
gravity accepts
Return Value

Gets if this particle has physics

overload 1:
Particle.hasPhysics(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Checks if this particle is not flagged for removal

overload 1:
Particle.isAlive(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Sets this particle lifetime, which is how many ticks this particle should stay in the world

overload 1:
Particle.lifetime(lifetime: Integer): Particle
typings.-672261858typings.1253495462
Method PropertyFluent DescriptionRepresentation
lifetime accepts
Return Value

Sets if this particle has physics

overload 1:
Particle.physics(physics: Boolean): Particle
typings.1729365000typings.1253495462
Method PropertyFluent DescriptionRepresentation
physics accepts
Return Value

Sets this particle position
The position is given in world coordinates

overload 1:
Particle.pos(pos: Vector3): Particle
typings.2002444080typings.1253495462
Method PropertyFluent DescriptionRepresentation
pos accepts
Return Value
overload 2:
Particle.pos(x: Number, y: Number, z: Number): Particle
typings.-1950496919typings.-1950496919typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets this particle power

overload 1:
Particle.power(power: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
power accepts
Return Value

Removes this particle from the world

overload 1:
Particle.remove(): Particle
typings.1253495462
Method PropertyFluent DescriptionRepresentation
Return Value

Sets this particle scale

overload 1:
Particle.scale(scale: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value

Sets this particle color
Accepts and alpha value, but most particles do not support it
Default RGBA of 1

overload 1:
Particle.setColor(rgb: Vector3): Particle
typings.2002444080typings.1253495462
Method PropertyFluent DescriptionRepresentation
rgb accepts
Return Value
overload 2:
Particle.setColor(rgba: Vector4): Particle
typings.2002444081typings.1253495462
Method PropertyFluent DescriptionRepresentation
rgba accepts
Return Value
overload 3:
Particle.setColor(r: Number, g: Number, b: Number, a: Number): Particle
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
a accepts
Return Value

Sets this particle gravity

overload 1:
Particle.setGravity(gravity: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
gravity accepts
Return Value

Sets this particle lifetime, which is how many ticks this particle should stay in the world

overload 1:
Particle.setLifetime(lifetime: Integer): Particle
typings.-672261858typings.1253495462
Method PropertyFluent DescriptionRepresentation
lifetime accepts
Return Value

Sets if this particle has physics

overload 1:
Particle.setPhysics(physics: Boolean): Particle
typings.1729365000typings.1253495462
Method PropertyFluent DescriptionRepresentation
physics accepts
Return Value

Sets this particle position
The position is given in world coordinates

overload 1:
Particle.setPos(pos: Vector3): Particle
typings.2002444080typings.1253495462
Method PropertyFluent DescriptionRepresentation
pos accepts
Return Value
overload 2:
Particle.setPos(x: Number, y: Number, z: Number): Particle
typings.-1950496919typings.-1950496919typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets this particle power

overload 1:
Particle.setPower(power: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
power accepts
Return Value

Sets this particle scale

overload 1:
Particle.setScale(scale: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value

Sets this particle scale

overload 1:
Particle.setSize(scale: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value

Sets the velocity of this particle
The velocity is given in world coordinates

overload 1:
Particle.setVelocity(velocity: Vector3): Particle
typings.2002444080typings.1253495462
Method PropertyFluent DescriptionRepresentation
velocity accepts
Return Value
overload 2:
Particle.setVelocity(x: Number, y: Number, z: Number): Particle
typings.-1950496919typings.-1950496919typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets this particle scale

overload 1:
Particle.size(scale: Number): Particle
typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value

Spawns this particle with the current properties

overload 1:
Particle.spawn(): Particle
typings.1253495462
Method PropertyFluent DescriptionRepresentation
Return Value

Sets the velocity of this particle
The velocity is given in world coordinates

overload 1:
Particle.velocity(velocity: Vector3): Particle
typings.2002444080typings.1253495462
Method PropertyFluent DescriptionRepresentation
velocity accepts
Return Value
overload 2:
Particle.velocity(x: Number, y: Number, z: Number): Particle
typings.-1950496919typings.-1950496919typings.-1950496919typings.1253495462
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value