Page 1 of 1

Help with scripts

Posted: Thu Feb 16, 2023 11:29 pm
by Galunoth
Hi

I want to create a script for a little more realism on a scenario... I would like that after a while, the pieces of wreckage disappear.

Any idea how to proceed?

Thank you all

Re: Help with scripts

Posted: Tue Feb 28, 2023 1:11 pm
by darkfrei
Galunoth wrote: Thu Feb 16, 2023 11:29 pm Hi

I want to create a script for a little more realism on a scenario... I would like that after a while, the pieces of wreckage disappear.

Any idea how to proceed?

Thank you all
If your entity is ghost, combat robot, highlight box or smoke then
https://lua-api.factorio.com/latest/Lua ... me_to_live

For other entities set the timer when to destroy the entities and on_n_ticks check them.