Hi I’m fairly new to unreal and need help, i’ve been working on a fighting game and have everything setup apart from the damage output on the player. I would like it so that when the player plays the punching animation and the fist collides with an ai the ai will take damage. Ive been trying for hours now and cant find any help. I have setup damage for the player so that when i press p the health is displayed in the top left and goes down until 0 then the actor is destroyed but how do i trigger the health to go down on the ai when the collision spheres on the player models hands connect. The first image is of the ai health and the second is the players health.
I would look for overlaps with your Sphere Collision. When you get an overlap check to see if the overlapped actor is an enemy. If they are use an Apply Damage node with the ‘Other Actor’ as the target. On the AI side you will need the Event Receive Any Damage node.
Let me know if that isn’t clear enough and I will make a mock-up for ya when I got some time.
Thanks ill try that now
Did that work out for ya?
Hey, it didn’t work after around a hour of trying i gave up. I have created a new way of taking damage.Thanks for the help though