FindPartID

Declaration: TParticles.FindPartID (PartID: integer): integer;
The function FindPartID searches for the particle id specified by the parameter PartID and returns the index of this particle (valid range: (1..NParticles). If the particle ID cannot be found a zero value is returned.

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