ScriptBind_Particle

CreateEffect

Creates a new particle effect.

Particle.CreateEffect( name, params )
ParameterDescription
nameParticle effect name.
paramsEffect parameters.

DeleteEffect

Deletes the specified particle effect.

Particle.DeleteEffect( name )
ParameterDescription
nameParticle effect name.

IsEffectAvailable

Checks if the specified particle effect is available.

Particle.IsEffectAvailable( name )
ParameterDescription
nameParticle effect name.

SpawnEffect

Spawns an effect.

Particle.SpawnEffect( effectName, pos, dir )
ParameterDescription
effectNameEffect name.
posPosition vector.
dirDirection vector.

SpawnEffectLine

Spawns an effect line.

Particle.SpawnEffectLine( effectName, startPos, endPos, dir, scale, slices )
ParameterDescription
effectNameEffect name.
startPosStart position.
endPosEnd position.
dirDirection of the effect.
scaleScale value for the effect.
slicesNumber of slices.

SpawnParticles

Spawns a particle effect.

Particle.SpawnParticles( params, pos, dir )
ParameterDescription
paramsEffect parameters.
posEffect position.
dirEffect direction.

CreateDecal

Creates a decal with the specified parameters.

Particle.CreateDecal( pos, normal, size, lifeTime, textureName )
ParameterDescription
posDecal position.
normalDecal normal vector.
sizeDecal size.
lifeTimeDecal life time.

CreateMatDecal

Creates a material decal.

Particle.CreateMatDecal( pos, normal, size, lifeTime, materialName )
ParameterDescription
posDecal position.
normalDecal normal vector.
sizeDecal size.
lifeTimeDecal life time.
materialNameName of the Material.

Attach

Attaches an effect.

Particle.Attach()

Detach

Detaches an effect.

Particle.Detach()