GetItemInSlot(int, object)

Retrieve the item in a given inventory slot of a creature.

object GetItemInSlot(
    int nInventorySlot,
    object oCreature = OBJECT_SELF
);

Parameters

nInventorySlot

INVENTORY_SLOT_*

oCreature

Target creature. (Default: OBJECT_SELF)


Description

Returns the object which is in oCreature's specified inventory slot (nInventorySlot).
Returns OBJECT_INVALID if oCreature is not a valid creature or there is no item in nInventorySlot.



Version

1.22

See Also

functions: ActionUnequipItem | GetBaseItemType
categories: Inventory Functions
constants: INVENTORY_SLOT_* Constants


 author: Jason Harris, editor: Kristian Markon
 Send comments on this topic.