# OnComponentBeginOverlap not registering

**URL:** <https://forums.unrealengine.com/t/oncomponentbeginoverlap-not-registering/322950>\
**Category:** World Creation\
**Tags:** unreal-engine, Physics, Blueprint, CPP, question\
**Created:** [June 25, 2015, 1:12am UTC](https://forums.unrealengine.com/t/oncomponentbeginoverlap-not-registering/322950 "2015-06-25T01:12:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonicphi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sonicphi](https://forums.unrealengine.com/u/sonicphi)\
**Post date:** [June 25, 2015, 1:12am UTC](https://forums.unrealengine.com/t/oncomponentbeginoverlap-not-registering/322950/1 "2015-06-25T01:12:56Z")

</div>

This was working fine some compiles ago and now i dont know what happened and its not working anymore, moving on…

In my class im registering 2 collision events:

```
GetCapsuleComponent()->OnComponentHit.AddDynamic(this, &AWindGameCharacter::HitThePlayer);
	
GetCapsuleComponent()->OnComponentBeginOverlap.AddDynamic(this,&AWindGameCharacter::DestroyOnTouch);

```

OnHit is working perfectly while OnOverlap is not being called.

They are both declared the same way in the .h and i checked more times than a sane person should to see if ther was any obvious errors

```
UFUNCTION()
	virtual void HitThePlayer(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, FVector vec, const FHitResult& result);
	
	UFUNCTION(BlueprintCallable, Category = mystuff)
		void DestroyOnTouch(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);

```

Now the funny part, in the ufunction of the overlap function(destroyOnTouch) i didnt have blueprint callable, and i added it to see if i could create the event in the objects blueprint and manage to make it fire from there, and ye, it works if the function is exposed to BP and linked to the OnOverlap node.

I also made sure everything is generating hit events.

So if any 1 has any ideas i would apreciate, thanks.

---

<div class="post-metadata">

**Author:** ![Zaucy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zaucy](https://forums.unrealengine.com/u/Zaucy)\
**Post date:** [June 26, 2015, 4:05am UTC](https://forums.unrealengine.com/t/oncomponentbeginoverlap-not-registering/322950/2 "2015-06-26T04:05:42Z")

</div>

> I also made sure everything is generating hit events.

What about overlap events? Do you have [bGenerateOverlapEvents](https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UPrimitiveComponent/bGenerateOverlapEvents/index.html) set to true?

---

<div class="post-metadata">

**Author:** ![sonicphi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sonicphi](https://forums.unrealengine.com/u/sonicphi)\
**Post date:** [June 26, 2015, 10:27pm UTC](https://forums.unrealengine.com/t/oncomponentbeginoverlap-not-registering/322950/3 "2015-06-26T22:27:26Z")

</div>

i set that to true on the blue print, i believe its the same as doing it in code no? also the thing works when i call the exposed function in the blueprint connected to the blueprint overlap event so it has to be set to true for sure or else it wouldn’t work on the BP…
