I'm trying to add trails with lua for my addon, but I'm having trouble with it and would like some help. I need to have the ability to disable the trails too. Can someone help?
To create trails, you can use: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/util/SpriteTrail]util.SpriteTrail[/url]
Hiding them is a little more complicated but not difficult, take a look [URL="https://facepunch.com/showthread.php?t=1410670&p=45435914&viewfull=1#post45435914"]here[/URL].
[QUOTE=Mrkrabz;49872530]To create trails, you can use: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/util/SpriteTrail]util.SpriteTrail[/url]
Hiding them is a little more complicated but not difficult, take a look [URL="https://facepunch.com/showthread.php?t=1410670&p=45435914&viewfull=1#post45435914"]here[/URL].[/QUOTE]
Do you know where I can get the ids for the different bones on your player?
I'd suggest searching the wiki from now on as it's pretty easy to find this stuff.
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/LookupBone]Entity:LookupBone[/url]
Sorry, you need to Log In to post a reply to this thread.