GetWorldItem
A taken loose item’s slot - what it held, where, who took it, when it comes back.
Syntax
Section titled “Syntax”GetWorldItem(key)| Parameter | Type | |
|---|---|---|
key |
string | the item slot’s level name |
Returns
Section titled “Returns”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
Example
Section titled “Example”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") endSee also
Section titled “See also”GetTakenWorldItems · RespawnWorldItem · TakeWorldItem · the Doors and containers group of the index
