PowerQuest  0.10.2
CharacterScript Class Reference

Detailed Description

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

Public Member Functions

IEnumerator OnInteract ()
 Blocking script called when "Interact" is used on the character. More...
 
IEnumerator OnLookAt ()
 Blocking script called when "Look at" is used on the character. More...
 
IEnumerator OnUseInv (IInventory item)
 Blocking script called when an inventory item is used on the character. Check the passed in item to see which was used. Eg: if ( item == I.RubberChicken ) More...
 

Member Function Documentation

◆ OnInteract()

IEnumerator OnInteract ( )

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

◆ OnLookAt()

IEnumerator OnLookAt ( )

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

◆ OnUseInv()

IEnumerator OnUseInv ( IInventory  item)

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