I have this emitter giving a pulse at a normalised vector of itself but it won't fire. can anyone give me advice on what is wrong with this script?
Thank you
local n = b:Normalize() * 4
local ect,e
if e == nil then
ect = 10
e = Emitter:Create(5)
e:SetPosition(n,true)
e:SetInterval(1)
e:SetDuration(5)
e:SetEmissionShape(1)
e:SetEmissionVolume(0, 0, 0)
e:ClearAlphaControlPoints()
e:ClearScaleControlPoints()
e:AddScaleControlPoint(0, 4)
e:AddScaleControlPoint(1, 6)
e:SetParticleColor(0.1, 0, 0, 1, 0)
e:SetParticleColor(0.95, 0, 0, 1, 1)
e:SetVelocity(0, 0, 0, 0) --e:SetVelocity(n.x, n.y, n.z, 0)
e:SetVelocity(0, 0, 0, 1)
e:SetAcceleration(n.x,n.y,n.z)
e:SetLoopMode(false)
end
if e ~= nil then
ect = ect - 1
if ect == 0 then
e:Release()
end