Disable creation of ghost after building is destroyed
Disable creation of ghost after building is destroyed
I know nothing about programing, my knowledge is limited by wiki page about modding. I know you can remove extending ghost lifetime research from technologies, but i didn't to that in my current playthrough so i wonder if there is any other way.
- Stargateur
- Fast Inserter
- Posts: 198
- Joined: Sat Oct 05, 2019 6:17 am
- Contact:
Re: Disable creation of ghost after building is destroyed
Code: Select all
data:extend({
type = "technology",
name = "disable-ghost",
effects =
{
{
type = "ghost-time-to-live",
modifier = 0,
}
},
unit =
{
count = 1,
ingredients =
{
{"automation-science-pack", 1},
},
time = 1,
},
})
Re: Disable creation of ghost after building is destroyed
You can disable the ghost with the following command:
Code: Select all
/c game.player.force.ghost_time_to_live = 0