• Particle Effects On Player?
    3 replies, posted
Is it possible to attach a particle effect to a player's head? If so, what function or hook is used?
You should look at the Player Appearance Customizer, also called PAC, found [URL="http://facepunch.com/showthread.php?t=1251238"]here[/URL]
I'm looking for a way to integrate a particle effect into something I am working on, PAC just won't work with it.
[lua] local particleeffectname = "some_particle_effect" local t = {} local CPoint0 = { ["entity"] = ent1, ["attachtype"] = PATTACH_ABSORIGIN_FOLLOW, } local CPoint1 = { ["entity"] = ent2, ["attachtype"] = PATTACH_ABSORIGIN_FOLLOW, } PrecacheParticleSystem(particleeffectname) ent1:CreateParticleEffect(particleeffectname,t) end [/lua] This will vary per effect, and makes a compatible effect stream between points 0 and 1, which in this case are entity 1's position, and entity 2's position. The only compatible effects are ones that were made to send particles between at least two control points labeled 0 and 1. Familiarize yourself with the valve particle editor before asking questions about this. Once you understand this example, you shouldn't have trouble making what you want. My example comes from a project where I made a beam that fires out between two points. Or if you only wanted some shitty floaty lights, look at [url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index576d-2.html]this[/url].
Sorry, you need to Log In to post a reply to this thread.