surface.create_entity() returns spill stack

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 525
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

surface.create_entity() returns spill stack

Post by Mylon »

Example:

Code: Select all

local ent, item = assembler[1].surface.create_entity{name=ghost.ghost_name, position=assembler[1].position, direction=assembler[1].direction, force=force, fast_replace=true}
ent is the entity as usual, item is the spill stack created by the fast_replace flag.
Post Reply

Return to “Modding interface requests”