Multiplayer Index

hello,
so i’m trying to add an Attack to a player, and the attack only work on player index 0, how can i make it work on other players aswell?
here Blueprint if needed:

Where are you executing this code?

If on a player controller you can say “GetPawn” and cast to your character type.

i’m executing this code on my Character BP.

So you’re trying to find the MESH COMPONENT of the Character you’re executing this code on.

It’s pretty easy, instead of trying to find the character in the game (GetPlayerCharacter does that), you just have to get the MESH COMPONENT in the blueprint you’re working in (they are the same mesh).

You’re working on the Player Character so you can instantly access its properties, one of them being “Mesh”.

If you look at the top-left part of your blueprint editor, you have a list of components. In there, there’s “Mesh”, you can drag and drop it onto your Blueprint and use it.

Thank you, the animation works…