GetInventoryObject

From the Oblivion ConstructionSet Wiki
Revision as of 10:27, 25 July 2006 by imported>DragoonWraith (OBSE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.