Activation Interface
Class Reference: BPI_BUIS_ActivationInterface
Last updated
Class Reference: BPI_BUIS_ActivationInterface
Last updated
The default Activatable Actor that comes with this system (BP_BUIS_Activatable
) is set up with this interface already, but if you need or want to create your own Activatable then you'll need to add this interface to your Activatable Actor.
Head to your custom interactable class then go into the Class Settings Menu and then in the details panel look under Implemented Interfaces, and add the BPI_BUIS_ActivationInterface
.
You will now have two different functions underneath the Interfaces in the category to the left.
Get Activation Component: Allows you to easily get the activation component of any actor implementing this interface.
Can Activate: Easily Determine if you can activate this actor. This has to return true before the actor can be activated.
Its important that you implement both of these functions correctly.
First head into the Can Activate function and make sure that the return value is returning true
and not false. If it returns false
, then it'll fail to activate.
Then head into Get Activation Component and make sure it returns the Activation Component on your Activatable. If this function doesn't return the Activation Component then it'll fail to activate.
This is all that is required to set up your activatable. This should allow you to set up any form of logic to allow for determining if an activatable can be activated or not and even activate.