How i must for create a trail!?

Hello people of the community … quieria them questions such as:

I can create a trail for an entity (player) and that after desaparesca?, Not time … but on action

Thanks for your helping

oooh thanks…no…wait,oooh course…i’ve tried to use it,but the “trail” don’t dissapear,i put,remove(),Stop(),kill()
But just do lua errors…
[LUA]
trail_dash = util.SpriteTrail(v, 1, Color(0,0,255), false, 40, 0, 0.1, 1/(15+1)*0.5, “effects/dash_effect.vmt”)
timer.Simple(0.7, function()
trail_dash:Remove()
end
[/LUA]

When you mean disappear, do you want it to fade? If so it already does that, look for the argument for the fading.

Are you talking about **[G.SafeRemoveEntity

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=G.SafeRemoveEntity)** ?

You forgot ) on the end of your timer

[LUA]trail_dash = util.SpriteTrail(v, 1, Color(0,0,255), false, 40, 0, 0.1, 1/(15+1)*0.5, “effects/dash_effect.vmt”)
timer.Simple(0.7, function()
if ValidEntity(trail_dash) then
trail_dash:Remove()
end
end)
[/LUA]

Thanks so much…now my addon looks good thanks for this code :smiley:

no problem bro