How to use OnActorBeginOverlap c++ code?

The this pointer is used probably to identify the instance of the character. This is so that the code uses that instance’s function. So it does this->BeginOverlap, otherwise it wont know WHICH character the event function is calling.