• Simple Particles
    14 replies, posted
Is it possible to use a particle effect from a file in the particles/ directory and if not how would i get a simple "portal" effect (not partal valve just a round load of sparks and everything)
[url=http://wiki.garrysmod.com/?search=G.PrecacheParticleSystem][B]PrecacheParticleSystem[/B] [img]http://wiki.garrysmod.com/favicon.ico[/img][/url] [url=http://wiki.garrysmod.com/?search=G.ParticleEffectAttach][B]ParticleEffectAttach[/B] [img]http://wiki.garrysmod.com/favicon.ico[/img][/url] [url=http://wiki.garrysmod.com/?search=G.ParticleEffect][B]ParticleEffect[/B] [img]http://wiki.garrysmod.com/favicon.ico[/img][/url] But if you make your own particle system with the orange box particles you can't send it to the clients.
[QUOTE=CowThing;19612406]But if you make your own particle system with the orange box particles you can't send it to the clients.[/QUOTE] The particle systems I make get sent to the client :iiam:
As in you made them with the editor and they are your own custom particles? They didn't work last time I tried.
[QUOTE=CowThing;19612554]As in you made them with the editor and they are your own custom particles? They didn't work last time I tried.[/QUOTE] Yep, the ones that I make in the OB Particle Editor are sent to the clients. [editline]08:45PM[/editline] I resource.AddFile them.
[QUOTE=NullPoint;19612573]Yep, the ones that I make in the OB Particle Editor are sent to the clients. [editline]08:45PM[/editline] I resource.AddFile them.[/QUOTE] Oh. My. God. I need to try this.
Oh my, I completely forgot about resource.AddFile
[QUOTE=CowThing;19612754]Oh my, I completely forgot about resource.AddFile[/QUOTE] I wasn't implying I forgot resource.AddFile, if thats what your asking. I thought maybe that in some sort of chaotic update, the ability was added that they could be sent down to clients.
No I was saying I forgot that there was a resource.AddFile command. I almost always use Source game resources so I never had a use for it, and I didn't think it could be used to send particles to the Client.
So do i use addfile instead of the precache?
[QUOTE=hogofwar;19613144]So do i use addfile instead of the precache?[/QUOTE] You have to Precache and AddFile it. [editline]09:18PM[/editline] Precache it shared and AddFile it serverside.
[QUOTE=hogofwar;19613144]So do i use addfile instead of the precache?[/QUOTE] Add this to the top of whatever script you are using, [lua]resource.AddFile( "particles/cool_fire.pcf" )[/lua] Change the "particles/cool_fire.pcf" to where your particle is located.
Thanks guys i have it working now first time(ish) for once! Just, Thanks...
I just tried sending particles to clients, they never saw them. It doesn't seem to work.
It seems the clients have to restart their game after they have downloaded them to be able to see them.
Sorry, you need to Log In to post a reply to this thread.