How to allow Character pawn to push other Character pawn?

Hello guys!

I know that Character actor is kinematic, but I need to allow other players to push each other. And also I don’t want to write my own physic based character.

So what’s the best way to add this feature? I also need in ability to push characters by some level parts - moving walls, giant falling balls and etc =)

Thanks!

Adding force to the PlayerCharacter on overlap. (:

Hm… It seems that I have described my question incorrectly =) I need to make it so that one walking character could move other character like in Mortal Kombat (it’s the first game that I remember with same characters behaviour).

In my Fighting Game Project I use an event that is called every frame the character moves and when they have a certain distance. When they are too close, player A pushes player B the direction it is moving the same amount.

I move my characters with Add Actor Local Offset, so the pushing is also done the same way. It may be a different story if you are using velocity but I think the way to do it would be similiar anyhow.

One thing that is a plus on my end is, Add Actor Local Offsets work together, having two of them does not cancel the other.

I thought about the same way but hoped that there is more proper way. I did it with Set Actor Location. Anyway thanks for your answer.

Hey if I set sweep, It could print error. like infinity loop.
And When unsetting sweep, Character pass through a wall.

How did you solve?.. I need pushing character each other

@minnow

Add a delay onto your event chain. That fixed it for me. It works at 0.01

I used Launch character on both, using each side of the difference in velocity vectors to make it act like an elastic collision equation. But yours sounds smoother.