API:GameData.InteractData.IsLootAvailable
From RoR Wiki
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–trueif 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
