PowerQuest  0.15.3
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. Only called if there was no character interact script in the current room. More...
 
IEnumerator OnLookAt ()
 Blocking script called when "Look at" is used on the character. Only called if there was no character interact script in the current room. More...
 
IEnumerator OnUseInv (IInventory item)
 Blocking script called when an inventory item is used on the character. Only called if there was no character interact script in the current room. 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. Only called if there was no character interact script in the current room.

◆ OnLookAt()

IEnumerator OnLookAt ( )

Blocking script called when "Look at" is used on the character. Only called if there was no character interact script in the current room.

◆ OnUseInv()

IEnumerator OnUseInv ( IInventory  item)

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