• Would like to learn a little bit more about Particles/Emitters/Trails
    2 replies, posted
Hello everyone! So, I'm pretty new to lua and would like some help with Particle Trails to PointShop. I've searched around on google for a while trying to find some good information but I only found outdated stuff. I'd like to have the AR2Tracer effect [img]http://i.imgur.com/Tx86KNy.png[/img] So, I started off with the basics ITEM.Name = 'Swagmeister Trail' ITEM.Price = 25000 ITEM.AllowedUserGroups = { "swagmeister", "admin", "supervip" } ITEM.NoPreview = true And now I need help with the rest, I found this hook on the wiki [CODE] function EFFECT:Init( data ) self.particles = 4 end function EFFECT:Think() return false end function EFFECT:Render() local vOffset = data:GetOrigin() + Vector( 0, 0, 0.2 ) local vAngle = data:GetAngles() local emitter = ParticleEmitter( vOffset, false ) for i=0, self.particles do local particle = emitter:Add( "effects/softglow", vOffset ) if ( particle ) then particle:SetAngles( vAngle ) particle:SetVelocity( Vector( 0, 0, 15 ) ) particle:SetColor( 255, 102, 0 ) particle:SetLifeTime( 0 ) particle:SetDieTime( 0.2 ) particle:SetStartAlpha( 255 ) particle:SetEndAlpha( 0 ) particle:SetStartSize( 1.6 ) particle:SetStartLength( 1 ) particle:SetEndSize( 1.2 ) particle:SetEndLength( 4 ) end end emitter:Finish() end [/CODE] Not sure though if I need it or not :s As I said, I'm really new and would like some help, thanks alot!
Try looking at other Pointshop stuff or default GMod trials
Already done, still nothing.
Sorry, you need to Log In to post a reply to this thread.