IsOverlappingActor(Other Object*); how to use this function?

Hello, I want to make object stop when he touches another object, so I have tried to use IsOverlappingActor(Other Object*); function. But I have problems: how to get link to another object from scene???

That only returns a boolean, there are two ways of doing this: GetOverlappingActors if you want to get it from a component the parameter requires an array of actors and you would have to check for what actor your looking for in a for loop(or while if you want). Or you can try the function OnOverlapBegin(class UPrimitiveComponent* OverlappedComp, class AActor* OtherActor,
class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep,
const FHitResult& SweepResult).

Make sure you bind the OnOverlapBegin function or else it won’t work.

(post deleted by author)