Jump to content

emitter failure


Joe
 Share

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...