Hey zaffiq,
I’m able to send screenshots right now, but it shouldn’t be too hard to fix the issues you’re having.
First, I see a bug in your screenshot. You’ve enabled input to your player controller as the target, but you also need to define the player controller input node as well (right below the target).
Depending on how your character/montage is set up, that might be all you need to do.
If it doesn’t work, you can rework your logic a bit by following these steps:
-
Set bIsPunching to True in your BPClass, then delay then length of your montage (or however else you want to handle that) and set bIsPunching to False
-
Then in your anim graph, set up anim states (see the links below) to enter your punching animation when bIsPunching is True and exit when false.
-
Then you can attach sphere overlaps (or ‘spawn a punch’ on a hit event) to call your damage events.
This will make it a bit easier if you decide to set up multiplayer if you decide to in the future.
Links:
Let me know if this helps!