Help with scripts

Place to get help with not working mods / modding interface.
User avatar
Galunoth
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sat Jul 18, 2020 7:51 pm
Contact:

Help with scripts

Post 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
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Help with scripts

Post 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.
Post Reply

Return to “Modding help”