Detecting overlap event in a grandchild BP actor
I'm hoping some more experienced Blueprint coders can offer me some guidance on this problem.
I have a level map containing procedural puzzle Blueprint actor which contains another Blueprint actor. I need to dispatch overlap events from a simple cylinder mesh inside the inner most BP actor and use them all the way back in the the parent level map.
Structure is: Map > Main BP > Child BP > Cylinder Mesh
In the Map i need to have an event fire when the Cylinder Mesh is overlapped by the player pawn.
I've been trying to make this work using dispatchers, but I keep running into confusion with targets / scope. The reason the Cylinder mesh lives inside a Child BP is that it is moved around with other objects as part of the procedural generation of the puzzle in the Main BP.
Here's a visual representation.
I hope I have explained well enough. How would you go about this?
asked Oct 01 '18 at 11:57 PM in Blueprint Scripting
By "map" do you mean "level BP"?? If yes, then all you need is to select the "cylinder mesh" and right click in the level BP to open up the search bar and you should see "create reference to selected actor" once you have a reference you can say "on event overlap" and then script whatever logic you want from there.
Follow this question
Once you sign in you will be able to subscribe for any updates here