-
-
Notifications
You must be signed in to change notification settings - Fork 18
Actor Interactable Component Validations
Dominik Pavlíček edited this page Oct 27, 2022
·
15 revisions
LifecycleCount is validated by this logic:
if LifecycleMode == Cycled
then LifecycleCount = Max(2, InputValue)
if LifecycleMode == Once
then LifecycleCount = 1
CooldownPeriod is validated by this logic:
if LifecycleMode == Cycled
then LifecycleCount = Max(0.1, InputValue)
DefaultInteractableState is validated by this logic:
if DefaultInteractableState == Active
then DefaultInteractableState = Awake
else if DefaultInteractableState == Cooldown
then DefaultInteractableState = Awake
else if DefaultInteractableState == Completed
then DefaultInteractableState = Awake
State Machine is a way to verify the State of the component. Some state paths cannot be traversed, and that is to avoid conflicts for validation. In the simple graph below you can see which State can be accessed from which.
Can Interact is a function with determines whether this Component can Interact or not. This function can be overridden in Blueprint to give game developers finer control over the validation flow. Default control is:
if State == Awake
then return Does Have Interactor?
else return False