Particle end event like animation_done? (SOLVED)

unfortenatly it’s still an issue =(

UPD:
this issue only with particlefx.EMITTER STATE_POSTSPAWN but with particlefx.EMITTER STATE_SLEEPING it works fine.

local function particle_callback(self, particlefx_url, emitter_id, state)
  if state == particlefx.EMITTER_STATE_SLEEPING then
    go.delete(".")
  end
end

function init(self)
  particlefx.play(NAME, particle_callback)
end
4 Likes