Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GameData.InteractData.IsLootAvailable

From RoR Wiki
Revision as of 19:42, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Loot functions
Version: WAR 1.4.8

Returns whether the loot list of the corpse or object the player is looting has any items.

available = GameData.InteractData.IsLootAvailable()

Arguments

None.

Returns

available
boolean – true if the stored loot list (the one returned by GameData.InteractData.GetLootList) has at least one item.

Details

  • If the Lua state is not available, the function returns nothing.
  • The stock UI never calls this function.

Errors

None.

Example

A minimal example built from the signature:

if GameData.InteractData.IsLootAvailable() then
    local items = GameData.InteractData.GetLootList()
end

See also