Co-op How to seperate ragdoll physics from main character?

Hey everyone,

I’m working on a co-op game project and have a question about the ragdoll physics system. Since it’s a co-op game, there’s only one main character blueprint, and all players share the same character properties. What I’m trying to achieve is making a player go into ragdoll mode when hit by another player using a broom. However, since the Set Simulate Physics node is used on the character mesh, when the line trace hits the other player, the one who performed the hit ends up going into ragdoll mode instead.

Self-ignore is enabled in the line trace, but I can’t separate the ragdoll effect from the player who is hitting. How can I ensure that the ragdoll effect is applied to the player being hit instead of the attacker?

Thanks!

Hey @datZac!

So the thing is you need to have a way to get a reference for the hit character, and have that character RUN “RPC_RagDollOnClient”. Which, you may already have, but this is a very small amount of code. This looks good! IF you call it from the attacking character.

Let us see some more of what you’re working with!