Skip to main content

Introduction

The RPG Action adds opening and closing to an Interactable RPG Object.

"RPG Open Close Action"

Fields#

NameDescription
Open TextText to display when object can be opened
Close TextText to display when object can be closed
Open Close DurationTime it takes to open/close the object (interaction is disabled during this time)
Open Anim ModifiersList of modifiers to apply to the animator when opening
Close Anim ModifiersList of modifiers to apply to the animator when closing
Audio Pool ChannelName of the broadcaster channel to use with the audio ppol
Open SoundSound to play on open
Close SoundSound to play on close
On OpenEvent raised when the object opens
On CloseEvent raised when the object closes
Forbid When OpenList of actions to forbid when opened
Forbid When ClosedList of actions to forbid when closed
On Lock State ChangedEvent raised when interaction should be locked

Properties#

NameDescription
preventActionsList of other action to prevent
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

Methods#

NameDescription
CloseClose the object (if opened)
OpenOpen the object
OnInteractionCalledThis method is called whenever the Interaction UI is displayed
OnInteractorChangedThis method is called whenever the Current Interactor changes