Particle Candy - Unlimited duration?

Hi everyone,

When feeding an emitter you have to put in a duration of the emitter like so:

-- FEED EMITTERS (EMITTER NAME, PARTICLE TYPE NAME, EMISSION RATE, DURATION, DELAY)  
Particles.AttachParticleType("E1", "FairyDust" , 15, 99999,100)   

Is there a way to make the emitter run indefinitely until you manually stop it? I have tried the usual 0 but this makes it run for 0 milliseconds. I guess I can put a really large number here but there should be a way to make it run indefinitely. Any help is appreciated, thanks! [import]uid: 31262 topic_id: 26767 reply_id: 326767[/import]

The main function has a runtime listener that updates it continuously until you stop it. [import]uid: 40033 topic_id: 26767 reply_id: 108696[/import]

Here’s an example:
[lua]-- FEED EMITTERS (EMITTER NAME, PARTICLE TYPE NAME, EMISSION RATE, DURATION, DELAY)
Particles.AttachParticleType(“E1”, “FairyDust” , 15, 99999,100)

– TRIGGER THE EMITTERS
Particles.StartEmitter(“E1”)
theE1Emitter = Particles.GetEmitter(“E1”)

– MAIN LOOP
local function updateFairyDust()
Particles.Update()
end
Runtime:addEventListener(“enterFrame”, updateFairyDust)
– STOP MAIN LOOP
Runtime:removeEventListener(“enterFrame”, updateFairyDust)

– CLEAN UP
if theE1Emitter ~= nil then
Particles.StopEmitter(“E1”)
theE1Emitter = nil
Particles.CleanUp()
end[/lua]
[import]uid: 40033 topic_id: 26767 reply_id: 108701[/import]