Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  KillParticle after collision and shouldn't return
#3
Code:
if (emitter.isEmitting) // or when you emit your first particle
emitter.minPoolSize = 1;

This would work in your case, I think. minPoolSize prevents emission from starting until the percentage of pooled particles is above its value. So by setting it to 1 (100%) while emitting will prevent emission from restarting until there's more pooled particles than the blueprint's capacity, which will never happen. So once the barrel is empty, emission won't restart.
Reply


Messages In This Thread
RE: KillParticle after collision and shouldn't return - by josemendez - 28-09-2020, 07:51 AM