Overlap Duration / Collision Time / Delay before action

Hello !

I’m new to ue4 and I’de like to count the time passing during an overlap between two objects.

So far I am working with a delay node and boolean conditions with branches but the result is quite unstable.

Is there a node construction that can wait for a certain time while checking for overlaping (or any other condition) before firing the rest of the sequence ?

My construction :

The closest I got to a time value is by breaking the hit result where there is a Time variable, but I don’t know how to work with it :

Thanks if any answers !

Forget the “Time” of the hit result. The documentation states:

Can you explain a little better what you mean with “I’de like to count the time passing during an overlap between two objects.

Thanks for answering :

From the start of Begin Overlap Event I’d like to wait (?) 2 seconds before firing the rest of the event sequence. But if the overlaping is not occuring anymore during the 2 seconds then abort the sequence, or do something else.

I don’t know if that is clear enough, I could try again.

Here is a possibility:

On Begin Overlap it sets a 2 seconds timer. If after 2 seconds the timer is triggered (which only happens if On End Overlap wasn’t fired => still inside the volume) do the rest of the sequence.

2 Likes

I’m trying something with a While Loop, will keep this post updated.

That seems very nice, thanks a lot ! I’ll try it in the blueprint !

I do not recommend it for this case.

Very clean and working great :

[https://www.youtube.com/watch?v=W44S3IEWvg4

Many thanks again !](https://youtu.be/W44S3IEWvg4)