For some reason, players can still see the particles from this particle hat:
[lua]game.AddParticles("particles/item_fx.pcf")
ITEM.Name = 'Harvest Moon'
ITEM.Price = 40000
ITEM.Attachment = 'eyes'
ITEM.Material = "vgui/particlepics/Harvest_Moon.jpg"
ITEM.Particle = "unusual_fullmoon_cloudy_green"
PrecacheParticleSystem(ITEM.Particle)
function ITEM:OnEquip(ply, modifications)
ParticleEffectAttach(self.Particle, PATTACH_POINT_FOLLOW, ply, ply:LookupAttachment("eyes"))
ply:SendLua("timer.Simple(1, function() LocalPlayer():StopParticles() end)")
end
function ITEM:OnHolster(ply)
ply:StopParticles()
end
[/lua]
How can I make it so that it cannot be seen by the wearer, but can be seen by everyone else?
Look at how hats have it show for non-LocalPlayer
They're very similar which is why I'm confused.
You must create (edit the base) your own pcf with emission than spritecard, because...Stopparticles stop the emission, wont remove the particles
You sure that's the only way around it? Is there no way of setting some sort of transparency for LocalPlayer() or just removing them for that player. Editing each particle seems too long-winded to be true.
There ARE certain particles that do remove when you call the function, but the one you're using isn't. Mainly a lot of the recent halloween ones (from last year) are additive and don't like to be removed.
[QUOTE=LUModder;46284605]There ARE certain particles that do remove when you call the function, but the one you're using isn't. Mainly a lot of the recent halloween ones (from last year) are additive and don't like to be removed.[/QUOTE]
Spot on! I noticed this when testing as some of the did remove as others didn't. I'll soon release the particles that work :)
Sorry, you need to Log In to post a reply to this thread.