14.22 Revive() a ghost with 0 health gives repair pack alert
Posted: Thu Apr 13, 2017 6:08 am
Change the max_health value for the constant-combinator in prototype files to 0
Equip personal roboport or stand in construction zone and Create a ghost of the entity
/c local player, pos = game.player, game.player.position player.surface.create_entity{name="entity-ghost", position = pos, force = player.force, inner_name="constant-combinator"}
select and revive the ghost with /c game.player.selected.revive()
Notice repair pack alert.
Workaround:
Setting the health to 1 after reviving causes the alert to go away. /c game.player.selected.health = 1
Equip personal roboport or stand in construction zone and Create a ghost of the entity
/c local player, pos = game.player, game.player.position player.surface.create_entity{name="entity-ghost", position = pos, force = player.force, inner_name="constant-combinator"}
select and revive the ghost with /c game.player.selected.revive()
Notice repair pack alert.
Workaround:
Setting the health to 1 after reviving causes the alert to go away. /c game.player.selected.health = 1