OnActorBegin/EndOverlap for multiple triggers

Ok, so I have triggers set up around my trees that send off a bool that the tree_blueprint reads and then sends out a line trace to see if the player is facing the tree.

I want to know if it is possible to somehow group all of these into one, or maybe have a overlap for a folder? This way I won’t have to drag a new one in every time, considering this level will have thousands of trees. Or if you know an easier way for my to do it, that will help too!

Hey,

From your image above, it appears you are doing this in the Level Blueprint? What does your Tree_Blueprint look like, could you include the trigger as a component in it, instead of using the Level BP (this way you can drag/drop your tree into a level complete with it’s own trigger?).

-W

Not sure how to take them cool blueprint pictures that people do, so this is good enough. This is my Tree_Blueprint.


What do you mean by add it as a component?

Hey,

Instead of using a trigger inside the level blueprint, placing the trigger attached to the tree_blueprint like so:

7290-triggercomponent.png

Then you can use the overlap event to open/close the gate in your setup and the trigger is attached to the tree so you need only place the tree in your level and don’t need to touch the level blueprint.

-W

Alright cool, that worked, took my awhile to figure out that I needed to change it to hit component and turn off ignore self. But I got it working thanks for the help!