• Smoke effect
    4 replies, posted
What function would I use to emit a small patch of smoke from a certain position of a player? I was thinking particles, or something like this: [url]http://wiki.garrysmod.com/?title=Util.Effect[/url]
util.Effect or create an info_particle_system entity at the position
[lua] local em = ParticleEmitter( LocalPlayer():EyePos() ); local e = em:Add("sprites/smoke_exhaust_01", LocalPlayer():EyePos() ); e:SetColor( 255, 255, 255, 255 ); e:SetVelocity( Vector( 0, 0, 0 ) ); e:SetDieTime( 2 ); e:SetLifeTime( 1 ); e:SetStartSize( 10 ); e:SetEndSize( 1 ); em:Finish(); [/lua] Would something like this do? It doesn't do anything, however.
Is it client-side?
Yep, but I want others able to see it too. The code above seems to break everything clientside.
Sorry, you need to Log In to post a reply to this thread.