Page 1 of 1

surface.create_entity() returns spill stack

Posted: Tue Jan 03, 2017 7:38 pm
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.