PowerQuest 0.19.0
Loading...
Searching...
No Matches
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.
 
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.
 
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 )
 

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 )