So after receiving some help this is the current state of my basic attack.
I have no idea why it isn’t working as intended and after much research, I need some more help. It’s straightforward blueprints,
When attack is pressed, set that we are attacking, and change the animation state.
Then loop through all actors of BP_Enemy_Primary class that are overlapping sword collision
Cast to the enemy primary and grab its capsule component
From the cast, Check to see if the Sword collision and capsule component from the enemy are overlapping
if They are, the enemy takes damage (set to 1 to destroy the actor)
Once the loop is complete, change your is attacking to false and the state back to idle
What am I doing wrong?