let ghost.revive() return list of LuaItemStack
Posted: Thu Nov 10, 2016 10:22 am
Currently if you revive a ghost with ghost.revive() you get a dictionary of items which layed under the ghost. If there layed a blueprint, gun ammo or armor, you are not able to preserve properties like the blueprint content, grid content, health, ammo or durability (only the ones I could think of).
If there lays two chests items with health of 50% and 75% under a ghost and it is revived, what I currently get is the following:
What I want to get is the following:
Thanks,
Gerhard
If there lays two chests items with health of 50% and 75% under a ghost and it is revived, what I currently get is the following:
Code: Select all
local items, entity = ghost.revive()
-- items = {"chest" = 2}
Code: Select all
local items, entity = ghost.revive()
-- list of LuaItemStack
-- items = {{name = "chest", health = 0.5, …}, {name = "chest", health = 0.75, …}
Gerhard