http://www.conitec.net/beta/ent_getdecal.htmhttp://www.conitec.net/beta/ent_decal.htmThe thing that comes to mind is using an array.
If Particle* p = ent_decal
Then maybe
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
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