Code:
public Action:RemoveParticle( Handle:timer, any:particle ) {
if ( particle >= 0 && IsValidEntity(particle) ) {
new String:classname[32];
GetEdictClassname(particle, classname, sizeof(classname));
if (StrEqual(classname, "info_particle_system", false)) {
AcceptEntityInput(particle, "stop");
AcceptEntityInput(particle, "Kill");
particle = -1;
}
}
}
This function works fine at removing most particles, but fails to get rid of some particles like "diamondback_enemytag_skull_helper" and the duel floating particle (for in TF2 when you start a duel with someone). They fail to properly disappear when ordered to accept "stop" or "kill" and linger indefinitely. I am creating them as normal particle systems and most particles I create this way are properly destroyed when I call this function.
Is there a third input I should be including in here (like... "end" or "finish" or "finishloop" or "pretty please stop")? Or are there just some particles that cannot be removed through accepting entity input?
__________________