I am using this code for util.SpriteTrail()
[lua]
for _, v in ipairs(player.GetAll()) do
if(v:SteamID() == "STEAM_0:0:17302808") then
local ID = v:LookupBone("ValveBiped.Bipo1_R_Thigh")
util.SpriteTrail(v, ID, Color(255, 255, 255, 255), false, 30, 1, 10, 1/(30 + 1) * 0.5, "trails/weed.vmt")
end
end
[/lua]
and this is what it looks like in game:
[img_thumb]http://www.zimg.eu/i/4027522508[/img_thumb]
Now, my guess is that it doesn't like my attachment ID, so does anyone know a good attachmentID for trails, that are around around the middle of your legs?
Try creating [url=http://developer.valvesoftware.com/wiki/Env_spritetrail]this[/url] and then offset it.
You could try
[lua]
local ID = v:LookupAttachment("chest")
[/lua]
The best I could do really, since I couldn't get it to attach any lower, other than the feet.
Sorry, you need to Log In to post a reply to this thread.