Ghost Building Lifetime

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Geertje123
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun May 08, 2016 5:49 pm
Contact:

Ghost Building Lifetime

Post by Geertje123 »

Hello all,


I wanted to know if it is possible to set the lifetime of ghost buildings. With a setting or in-game command.

I've found a command, but it seems to be outdated as it gives me the error that LuaForce does not contain a key called ghosttimetolive.

Code: Select all

/c game.player.force.ghosttimetolive = 3600 * 15
I've also tried using the advanced search option on this forum, but it gave me an error as well. "Sorry but you cannot use search at this time. Please try again in a few minutes." (I tried a few minutes later but no luck :p)

Can anyone help me with this?


Kind regards,
Geert

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Ghost Building Lifetime

Post by daniel34 »

The correct command for 0.12 is

Code: Select all

/c game.local_player.force.ghost_time_to_live = 3600 * 60
3600 is the number of seconds (3600 = 1 hour), 60 is the amount of ticks/second and is constant.
quick links: log file | graphical issues | wiki

Geertje123
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun May 08, 2016 5:49 pm
Contact:

Re: Ghost Building Lifetime

Post by Geertje123 »

daniel34 wrote:The correct command for 0.12 is

Code: Select all

/c game.local_player.force.ghost_time_to_live = 3600 * 60
3600 is the number of seconds (3600 = 1 hour), 60 is the amount of ticks/second and is constant.
Thanks mate!

Post Reply

Return to “Gameplay Help”