Skip to content

Class "LootListEntry"⚓︎

Info

You can get this class by using the following function:

Example Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
local mod = RegisterMod("Print Pickups", 1)

function mod:OnPickupUpdate(pickup)
    if pickup.FrameCount ~= 1 then return end
    local lootList = pickup:GetLootList()
    local lootListEntries = lootListEntries:GetEntries()

    for _, lootListEntry in ipairs(lootListEntries) do
        print("PickupVariant:", lootListEntry:GetVariant(), "Pickup SubType:", lootListEntry:GetSubType())
    end
end
mod:AddCallback(ModCallbacks.MC_POST_PICKUP_UPDATE, mod.OnPickupUpdate)

Functions⚓︎

GetSeed ()⚓︎

int GetSeed ( )⚓︎


GetSubType ()⚓︎

int GetSubType ( )⚓︎


GetType ()⚓︎

EntityType GetType ( )⚓︎


GetVariant ()⚓︎

int GetVariant ( )⚓︎


GetRNG ()⚓︎

RNG GetRNG ( )⚓︎

Warning

May return nil.