Placing entity prototype has flags: {"placeable-neutral", "not-repairable", "player-creation"}, and "container" type.
Method call:
Code: Select all
surface.create_entity{
name = "entity-ghost",
force = player.force,
position = {x,y},
inner_name = "entity-name",
expires = true
}