Detect Actor overlap at a specific time

Basically, I want to detect actor overlaps only when a button is pressed, instead of right when it happens with an event. Is there any easy way to do this? I don’t want to do something silly like use my own variables to keep track of it in the OnActorBeginOverlap and OnActorEndOverlap events.

Hey -

You should be able to use the AActor::GetOverlappingActors() function to find all of the actors that overlap with the selected actor. You can find the syntax for the function in the documentation.

Cheers

Ah sweet, thanks.