Creates a new particle effect.
Particle.CreateEffect( name, params )
Parameter | Description |
---|---|
name | Particle effect name. |
params | Effect parameters. |
Deletes the specified particle effect.
Particle.DeleteEffect( name )
Parameter | Description |
---|---|
name | Particle effect name. |
Checks if the specified particle effect is available.
Particle.IsEffectAvailable( name )
Parameter | Description |
---|---|
name | Particle effect name. |
Spawns an effect.
Particle.SpawnEffect( effectName, pos, dir )
Parameter | Description |
---|---|
effectName | Effect name. |
pos | Position vector. |
dir | Direction vector. |
Spawns an effect line.
Particle.SpawnEffectLine( effectName, startPos, endPos, dir, scale, slices )
Parameter | Description |
---|---|
effectName | Effect name. |
startPos | Start position. |
endPos | End position. |
dir | Direction of the effect. |
scale | Scale value for the effect. |
slices | Number of slices. |
Spawns a particle effect.
Particle.SpawnParticles( params, pos, dir )
Parameter | Description |
---|---|
params | Effect parameters. |
pos | Effect position. |
dir | Effect direction. |
Creates a decal with the specified parameters.
Particle.CreateDecal( pos, normal, size, lifeTime, textureName )
Parameter | Description |
---|---|
pos | Decal position. |
normal | Decal normal vector. |
size | Decal size. |
lifeTime | Decal life time. |
Creates a material decal.
Particle.CreateMatDecal( pos, normal, size, lifeTime, materialName )
Parameter | Description |
---|---|
pos | Decal position. |
normal | Decal normal vector. |
size | Decal size. |
lifeTime | Decal life time. |
materialName | Name of the Material. |
Attaches an effect.
Particle.Attach()
Detaches an effect.
Particle.Detach()