Page 1 of 1

Ghost Building Lifetime

Posted: Sun May 08, 2016 5:54 pm
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

Re: Ghost Building Lifetime

Posted: Sun May 08, 2016 5:59 pm
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.

Re: Ghost Building Lifetime

Posted: Sun May 08, 2016 6:11 pm
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!