GetInventoryObject
Revision as of 10:27, 25 July 2006 by imported>DragoonWraith (OBSE)
A command for Oblivion Script Extender
Syntax:
GetInventoryItemType index
Must be called on a reference. Returns the indexth item in the container's inventory.
Example
ref itemType set itemType to ( player.GetInventoryItemType 0 ) container.additem itemType 1
Finds the first item in the player's inventory, and adds an object of the same type to a container.