util.SpriteTrail

From GMod Wiki

Jump to: navigation, search
Function
Syntax util.SpriteTrail( Entity entity, Integer AttachmentID, Color color, Boolean additive, Float Start Width, Float End Width, Float LifeTime, Float TextureRes, String Texture )
Where is this used?
Description:
Adds a trail to the specified entity with texture Texture
Returns: Entity
Part of Library: Util
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Util.SpriteTrail]Util.SpriteTrail [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds a trail onto entity "ent".
Used onNewerServer.png
Code
local trail = util.SpriteTrail(ent, 0, Color(255,0,0), false, 15, 1, 4, 1/(15+1)*0.5, "trails/plasma.vmt")
 
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox