Create ghost before blueprint research
Posted: Tue Nov 22, 2016 8:28 pm
Hello,
can someone give me a hint how I can create a ghost while blueprint is not yet researched. I tried
This returns the created ghost, but is not placed on the surface. A surface.find_entities_filtered immediately after creating the ghost does not returns it. Do I miss a parameter?
Thanks,
Gerhard
can someone give me a hint how I can create a ghost while blueprint is not yet researched. I tried
Code: Select all
/c pos = game.player.position e = game.player.surface.create_entity{name = "entity-ghost", inner_name = "small-electric-pole", force = game.player.force, position = {x = pos.x + 1, y = pos.y + 1}}
Thanks,
Gerhard