Hey there ,
I am currently working on the melee combat system of my tps game but facing a problem regarding the hit reaction . I have a player and an enemy bp which are child to a base character bp . I have attached a capsule collision to the fists of my main character and then I am casting to the enemy from the player child bp (event is on overlap begin) . However the casting always fails when my player charcter punches the enemy . Would be greatly appreciated if anyone is able fix my problem …
Below is the link to the blueprint script that I used .
capsule collision only works when colliding with other objects that have collision. Does the object that your character is “punching” have collision on it? if not it won’t work
I am punching my enemy which has the sam parent bp as the player character .i.e. both have a inherted capsule collision. The collision surely occurs and event- on overlap begin(handcapsule)(capsule attached to hand) is surely firing but the casting fails . The enemy is named EnemyCharacter in the bp and I am also using Cast to EnemyCharacter but it still fails. The input of cast is attached to the other actor output of the event- on overlap begin(handcapsule) .please help