• Resource.Addfile for particles.
    2 replies, posted
Hey guys, I'm successfully able to [lua]resource.AddFile("particles/hg_confetticannon.pcf")[/lua] And I can confirm that the client gets this file, as I tested it on myself. The problem is, when I try to precache an effect FROM the pcf file, [lua]PrecacheParticleSystem( "bday_confetti" )[/lua] It says that [B]"[/B]Attemped to precache unknown particle system "bday_confetti"![B]"[/B] This means my GMOD did not correctly mount the pcf file. I know that you have to add the file to particles_manifest.txt, but I can't send the client this file because it already exists in the default gmod install. So how can I get around this? I tried putting the pcf and txt file into a subfolder, and then sending that to the client, but the client still gets the same error when trying to preacache it. Anyone?
Use this instead of particles_manifest: [url]http://wiki.garrysmod.com/page/game/AddParticles[/url]
Thank you so much this was killing me! :P
Sorry, you need to Log In to post a reply to this thread.