Blueprint as long as I am in the trigger area

HI guys,

I have been working on a project, but I kinda faced a problem.

When I made blueprint for a trigger in the map I used OnComponentBeginOverlap, but this seems to be activated only once (Only when I enter the trigger). Is it possible to find something like as long as I am in the trigger it stays activated Like a loop.

Thank you,

You could set a timer on the overlap event, and pause it when overlap ends.

(Check for Timer : Create if it doesn’t exist. / [Unpause] if it does.)


And the End.

120273-overlap_ends.jpg

Hey Looniper,

I tried to implement the timer you showed me but it doesn’t seem to do what I need.
This is the blueprints I made including the timer did I use it in a wrong way?

Because you aren’t using an event, you are still drawing from the Overlap to make things happen - but it isn’t being called (only the first time)

You need to save a reference to the (2D side scroll character) causing the overlap, and use that in the timer-driven function that causes the action.


Then have the Function (set in the Timer) do what you would be having the Overlap event itself do.

I’m not sure the result you are looking for - but whenever the 2D side scroller character (actor) bumps into the box, it will start moving the actor up and right (100 units) or down and left (50 units) every second.

Thank you so much!

Was that what you were trying to get it to do?

I’ll be around most of the day if you need more help.