http://www.conitec.net/beta/ent_getdecal.htm

http://www.conitec.net/beta/ent_decal.htm

The thing that comes to mind is using an array.
If Particle* p = ent_decal

Then maybe
Code:
particle* p[2000];

Int part_count =-1;
Int part_max =1999;

Function
{
Part_count +=1;
P[part_count] =ent_decal.....;

/// remove all
For (i=part_count;i>-1; i--)
{
P[i].lifespan =0;
P[i] = NULL;
}


You could use p=ent_getdecal
Then use the *p pointer to set the lifespan to 0
P.lifespan =0;
Something like
Code:
For(i=1;i<50;i++)
{Particle* p=ent_getdecal(Ent,0,i);

P.lifespan=0;
If(p==null)
Break;}



Unless there a system type link for particles like ent_next

Last edited by Malice; 08/17/16 04:55.