Attempts to pick up an item available as loot. If the item in the loot slot binds on pickup, the LOOT_BIND_CONFIRM
event fires, indicating that ConfirmLootSlot(slot)
must be called in order to actually loot the item. Please note: if you call this while processing a LOOT_OPENED
event and it is the last item to be looted from the corpse, can cause LOOT_CLOSED
to fire and be processed before your LOOT_OPENED
event handler completes.
See also Loot functions.
Signature:
LootSlot(slot)
Arguments:
slot
- Index of a loot slot (between 1 andGetNumLootItems()
) (number
)