spill_item_stack returns created entities
Posted: Sat Mar 07, 2020 8:09 am
It'd be helpful if LuaSurface::spill_item_stack() returned the table of items it create.
I made aliens drop loot, and I'm attempting to mark the loot for deconstruction after there's no more enemies in a certain radius. This time delay means I can't use the instantaneous deconstruction provided by spill_item_stack(). I must store the items in a list, and check the list periodically.
I made aliens drop loot, and I'm attempting to mark the loot for deconstruction after there's no more enemies in a certain radius. This time delay means I can't use the instantaneous deconstruction provided by spill_item_stack(). I must store the items in a list, and check the list periodically.