Binding Events
There is a Bind Event node that binds one Event to another Event or to an Event Dispatcher, which can be in another Blueprint. When an Event is called, all the other Events that are bound to it are also called.
As an example, let's create a child Blueprint Class of Blueprint_Effect_Sparks. This new Blueprint binds an Event to the PlatformPressed
Event Dispatcher of the BP_Platform
Blueprint that we created in the previous example:
- Open the project used in the example of Event Dispatcher.
- Create a Blueprint, expand the All Classes menu, and search for Blueprint_Effect_Sparks, which we'll use as the parent class. Name it
BP_Platform_Sparks
and open it in the Blueprint Editor. - On the Components tab, select the Sparks Component and in the Details tab, search for the
auto activate
attribute and uncheck it if it is checked. This should already be unchecked since we changed it in Blueprint_Effect_Sparks. - In the My Blueprint panel, create a variable...