Skip to content

GetWorldItem

A taken loose item’s slot - what it held, where, who took it, when it comes back.

GetWorldItem(key)
Parameter Type
key string the item slot’s level name

table - {class=, x=, y=, z=, taken_by=, respawn_in=, pickup=} (respawn_in in world seconds, -1 never, 0 = a pickup stands there now, its id in pickup); nil for a slot that holds its item

local w = GetWorldItem(key)
if w then Log(GetItemName(w.class), "taken by", w.taken_by, "- back in", math.floor(w.respawn_in / 86400), "days") end

GetTakenWorldItems · RespawnWorldItem · TakeWorldItem · the Doors and containers group of the index