Crashes when punching AI to take damage

So i’m currently trying to add fighting in to my game, firstly by implementing damage to the AI using the TakeDamage function. However, the game crashes when I punch the AI.

I’m unsure where im going wrong as VS is building and UE4 will compile my code, however I get this crash report.
Would appreciate any input :slight_smile:

so, I’ve figured out what I was doing wrong.

Silly mistake but I was trying to pass player references and other defined variables in the construction of the function rather than just the undefined parameter variables. I’ve got a screenshot of the working code below.

Hope this helps other people. :slight_smile: