Remove util.SpriteTrail

Title says it already, I’m searching for a way to remove util.SpriteTrail once i run’d it
[lua]
function trail1 ( ply )
util.SpriteTrail(ply, 0, Color(255,0,0), false, 15, 1, 4, 1/(15+1)*0.5, “trails/plasma.vmt”)
end
concommand.Add( “trailtest”, trail1 )
[/lua]

util.SpriteTrail returns the entity.



ply.Trail = util.SpriteTrail( ... )
--Somewhere else
SafeRemoveEntity( ply.Trail )


-snip-

Got it working thanks! :slight_smile: