Cannot bind OnComponentHit
I am having a bit of a problem binding OnComponentHit to one of my capsule components. The problem is that the implementation worked before and when I cleaned up the class (moving some variables around to make it more readable), it just stopped working. Not sure whether that is actually the cause, but thought I should mention. Anyways, as for the code:
I have doublechecked the capsule components in the blueprint, and all of the relevant ones had the NotifyRigidBodyCollision set to true. I also tried binding it to the default CapsuleComponent instead of the one I added, but no luck there either. Would love to get this solved, as not being able to assign an OnHit kinda messes with the gameplay I was planning on implementing.
asked May 26 '16 at 09:38 AM in C++ Programming
OK, I hope this helps you.
This is the code I'm using in my project:
I was staring at the blueprint thingie for OnComponentHit and noticed that there's a 'Hit Component' in front of the 'Other Actor' and your parameters didn't include it. Could this be the cause of your problems?
I'm using 4.12 btw.
Follow this question
Once you sign in you will be able to subscribe for any updates here