ClearParticles

Category: Particle
Since engine version: 4.9.1.0 GWE

Description

Removes all particles of the specified type from pObj.

Syntax

bool ClearParticles (string szName, object pObj);

Parameters

szName:
Name of the particle definition of which you want to delete all particles. If 0, all particles of all types will be removed.
pObj:
Index of the material to be extracted. Also see CreateParticle

Examples

ClearParticles("Smoke");
Removes all smoke.
ClearParticles("Smoke", FindObject2(Find_ID(CLNK)));
Removes all smoke from a clonk.
See also: CreateParticle, PushParticles
Sven2, April 2002