Skip to main content

Introduction

The RPG Action adds lockpicking to an Interactable RPG Object. An inventory item can be set as required for lock picking.

"Inventory RPG Lockpick Action"

Fields#

NameDescription
Can Lock PickCan the object be lockpicked
Lock Pick TextText to display when object can be lock picked
Audio Pool ChannelName of the broadcaster channel to use with the audio ppol
Success SoundSound to play on successful lock picking
Failure SoundSound to play on failed lock picking
On SuccessEvent raised when lock picking succeeds
On FailEvent raised when lock picking fails
Require ItemRequire an item to lockpick object
Item IdId of the item to require
Destroy Item After UseDestroy the item after lockpick
Destroy Item On FailureDestroy the item after failing lockpick
On Missing ItemEvent raised when the required item is not in inventory
Use Stat For Lock PickingUse GDTK: Stats for lock picking success/failure
Lockpicking ConditionCondition that must be true to succeed
On Lock State ChangedEvent raised when interaction should be locked

Properties#

NameDescription
callbackCallback to invoke when using this action
lockInteractionsGet/Set interaction lock state
parameterParameter (usually string display text) to use with this action
parentGets the parent Interactable RPG Object
preventActionsList of other action to prevent

Methods#

NameDescription
PickLockPick lock on the object
OnInteractionCalledThis method is called whenever the Interaction UI is displayed
OnInteractorChangedThis method is called whenever the Current Interactor changes