OnComponentBeginOverlap work for one character but fires multiple time for other
I am using the OnComponentBeginOverlap to detect if the punches of my character are hitting other. I used this code for the player character for the function called by OnComponentBeginOverlap:
It is working fine, the Player punch is logged only when the punch hits the enemy and after 5 punches the enemy is destroyed as my enemy health is 50. However i used the same for my enemy character:
But with each punch of the enemy, the function gets called many times(3-5 times). I dont get why is it happening. Both the capsule components are identical, For both, OnComponentBeginOverlap is called inside BeginPlay but still this is happenening. The OnComponentBeginOverlap are as follows:
can anyone please help me with my problem. I am new to ue and I found that the answerhub is quit unresponsive to questions. so please someone help me with this.
asked Jul 07 '18 at 04:56 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here