Introduction
The RPG Action adds locking and unlocking to an Interactable RPG Object.

Fields#
| Name | Description |
|---|---|
| Can Lock | Can the object be locked by interaction |
| Unlock Text | Text to display when object can be unlocked |
| Lock Text | Text to display when object can be locked |
| Audio Pool Channel | Name of the broadcaster channel to use with the audio ppol |
| Lock Sound | Sound to play on lock/unlock |
| On Locked | Event raised when the object becomes locked |
| On Unlocked | Event raised when the object becomes unlocked |
| Forbid When Locked | List of actions to forbid when locked |
| Forbid When Unlocked | List of actions to forbid when unlocked |
| On Lock State Changed | Event raised when interaction should be locked |
Properties#
| Name | Description |
|---|---|
| preventActions | List of other action to prevent |
| callback | Callback to invoke when using this action |
| lockInteractions | Get/Set interaction lock state |
| parameter | Parameter (usually string display text) to use with this action |
| parent | Gets the parent Interactable RPG Object |
Methods#
| Name | Description |
|---|---|
| ForceUnlock | Force unlock the object |
| Lock | Lock the object |
| Unlock | Unlock the object |
| OnInteractionCalled | This method is called whenever the Interaction UI is displayed |
| OnInteractorChanged | This method is called whenever the Current Interactor changes |