SmokeWithTrigger duration vs animation time and cyclic
Posted: Sun Aug 11, 2024 7:12 pm
Hi,
Spent too long trying to debug this, but it seems that the duration on entities 'smoke-with-trigger' gets seemingly ignored unless the cyclic property is set to true.
If you don't have cyclic set (or it's false), then the entity will expire (not get destroyed or dies, since those events never got fired either) when the animation completes instead of the actual prototype duration or time-to-live on the entity.
I'd also like to suggest a potential alternative, if the animation runs out before the duration runs out, the entity should just stop animating instead of immediately expiring. If it had stopped animating instead of just disappearing, that would have made it much more clear to me what I was doing wrong.
https://lua-api.factorio.com/latest/pro ... otype.html
Spent too long trying to debug this, but it seems that the duration on entities 'smoke-with-trigger' gets seemingly ignored unless the cyclic property is set to true.
If you don't have cyclic set (or it's false), then the entity will expire (not get destroyed or dies, since those events never got fired either) when the animation completes instead of the actual prototype duration or time-to-live on the entity.
I'd also like to suggest a potential alternative, if the animation runs out before the duration runs out, the entity should just stop animating instead of immediately expiring. If it had stopped animating instead of just disappearing, that would have made it much more clear to me what I was doing wrong.
https://lua-api.factorio.com/latest/pro ... otype.html