How to detect collision between the player and a specific object?

Thanks, but I already found an answer in a different post. I just used OnActorBeginOverlap and connected the OtherActor to Object from CastTo Player and it worked.