• PATTACH_CUSTOMORIGIN, how do I use it?
    4 replies, posted
So yeah, [url=http://wiki.garrysmod.com/?title=G.ParticleEffectAttach]the wiki says[/url] that you can give ParticleEffectAttach() this attachType, but how can I set the custom origin? The function doesn't take any position parameters so I'm very confused. Anyone happen to know how to use it?:keke:
If it's obvious, please tell me instead of rating me dumb:sigh:
[lua]local particle = ents.Create("info_particle_system") particle:SetKeyValue("start_active","1") particle:SetKeyValue("effect_name","effectname") particle:Spawn() particle:Activate() particle:SetPos(Vector(0,0,0))[/lua] I prefer this more because it allows you to keep and manipulate that entity. You can :SetParent() that too, it works just fine.
[QUOTE=Gbps;19495195][lua]local particle = ents.Create("info_particle_system") particle:SetKeyValue("start_active","1") particle:SetKeyValue("effect_name","effectname") particle:Spawn() particle:Activate() particle:SetPos(Vector(0,0,0))[/lua] I prefer this more because it allows you to keep and manipulate that entity. You can :SetParent() that too, it works just fine.[/QUOTE] Thank you!
[QUOTE=Gbps;19495195][lua]local particle = ents.Create("info_particle_system") particle:SetKeyValue("start_active","1") particle:SetKeyValue("effect_name","effectname") particle:Spawn() particle:Activate() particle:SetPos(Vector(0,0,0))[/lua] I prefer this more because it allows you to keep and manipulate that entity. You can :SetParent() that too, it works just fine.[/QUOTE] It's serverside only. Not like it matters if your stuff is serverside, but I thought I'd point this out just in case.
Sorry, you need to Log In to post a reply to this thread.