DeleteParticle

Declaration: TParticles.DeleteParticle (PartIx: integer): integer;
The function DeleteParticle deletes the particle specified by the index PartIx (valid range: 1..NParticles).

The function returns the following error codes:

 0 ... everything is OK
-1 ... partix is out of range

Hint: In order to access the particles currently loaded in the particle editor you can use the pre-declared global variable PEData.