• Particle path ParticleEmitter:Add()
    3 replies, posted
I'm trying to add particles with the ParticleEmitter, but it does not find the particle, because all I get is a missing texture square at the location of the particle. I've tried having the prefix "effects/", "effect/", "particle/" and "particles/" and none of them works. Does anyone know what I'm doing wrong? [lua] game.AddParticles("particles/fire_01.pcf") PrecacheParticleSystem("embers_small_01") local PE = ParticleEmitter(Vector(0,0,0), true) local particle = PE:Add('embers_small_01', player.GetAll()[1]:GetPos()) particle:SetLifeTime(0) particle:SetDieTime(3600) [/lua]
You cannot use .pcf particles inside a Lua particle. It's PE:Add("path to texture", pos)
So you can only use the limited function ParticleEffectAttach for .pcf particles?
There are other ParticleEffect* functions, but yeah.
Sorry, you need to Log In to post a reply to this thread.