PowerQuest  0.15.3
InventoryScript Class Reference

Detailed Description

Each inventory you create can have its own class and script file. These are created automatically with the name appended, eg: InventoryCrowbar.cs.

Public Member Functions

IEnumerator OnLookAtInventory (Inventory thisItem)
 Blocking script called when "Interact" is used on the item. More...
 
IEnumerator OnInteractInventory (IInventory thisItem)
 Blocking script called when "Look at" is used on the item. More...
 
IEnumerator OnUseInvInventory (IInventory thisItem, IInventory item)
 Blocking script called when one inventory item is used on another. Check the passed in item to see which was used. Eg: if ( item == I.RubberChicken ) More...
 

Member Function Documentation

◆ OnLookAtInventory()

IEnumerator OnLookAtInventory ( Inventory  thisItem)

Blocking script called when "Interact" is used on the item.

◆ OnInteractInventory()

IEnumerator OnInteractInventory ( IInventory  thisItem)

Blocking script called when "Look at" is used on the item.

◆ OnUseInvInventory()

IEnumerator OnUseInvInventory ( IInventory  thisItem,
IInventory  item 
)

Blocking script called when one inventory item is used on another. Check the passed in item to see which was used. Eg: if ( item == I.RubberChicken )