Call a function from a blueprint to another

Two simple steps:

  1. In the blueprint of whatever class contains the capsule, create a variable of type CastleBP. Let’s call it “Castle”. In the capsule class event graph, near your OnComponentBeginOverlap node, get a reference to the Castle variable and use it to call whatever function you want to call that you have already defined in the CastleBP blueprint. Connect the OnComponentBeginOverlap node to the execution pin of the desired CastleBP function.
  2. Next, in your map, go to the World Outliner and find the capsule instance and click on it. In the details pane, you can set the Castle variable to the instance of the CastleBP that exists in your World outliner.

That should work.