(Formerly known as SetActiveInventory, which is now obsolete)
(Formerly known as character[].activeinv, which is now obsolete)
InventoryItem* Character.ActiveInventory
Gets/sets the character's current active inventory item.
Setting it will update the mouse cursor if appropriate.
This property is useful in "Use inventory on hotspot/character/etc" events, to
find out which inventory item the player is trying to use on the target.
To deselect the current inventory, set it to null.
Example:
cEgo.ActiveInventory = iKey;
will make the inventory item iKey active (before you use it make sure that the player
has the inventory item)
|