# Damage other players when hit with a melee and vice versa?

**URL:** <https://forums.unrealengine.com/t/damage-other-players-when-hit-with-a-melee-and-vice-versa/431025>\
**Category:** Multiplayer & Networking\
**Tags:** health, damage, attack, unreal-engine, melee, Multiplayer, question\
**Created:** [August 5, 2018, 11:29pm UTC](https://forums.unrealengine.com/t/damage-other-players-when-hit-with-a-melee-and-vice-versa/431025 "2018-08-05T23:29:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ciremoh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ciremoh](https://forums.unrealengine.com/u/ciremoh)\
**Post date:** [August 5, 2018, 11:29pm UTC](https://forums.unrealengine.com/t/damage-other-players-when-hit-with-a-melee-and-vice-versa/431025/1 "2018-08-05T23:29:52Z")

</div>

How would you damage another player when your melee weapon collides with them in a multiplayer game? I have looked all over and there is not a single tutorial on how to do this besides the ones about AI damage, which I don’t want. I just want to know how to create a simple multiplayer melee attack system when you can damage other players and other players can damage you.

---

<div class="post-metadata">

**Author:** ![Hustlan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hustlan](https://forums.unrealengine.com/u/Hustlan)\
**Post date:** [August 8, 2018, 12:34pm UTC](https://forums.unrealengine.com/t/damage-other-players-when-hit-with-a-melee-and-vice-versa/431025/2 "2018-08-08T12:34:51Z")

</div>

Assuming you know how multiplayer works in UE, this is what you need

c++: [UGameplayStatics::ApplyDamage | Unreal Engine Documentation](https://api.unrealengine.com/INT/API/Runtime/Engine/Kismet/UGameplayStatics/ApplyDamage/index.html)

bp: [Apply Damage | Unreal Engine Documentation](https://api.unrealengine.com/INT/BlueprintAPI/Game/Damage/ApplyDamage/index.html)

If you don’t know how multiplayer works, I suggest that you read this:

> **[UE4\_Network\_Compendium\_by\_Cedric\_eXi\_Neukirchen.pdf](https://cedric-neukirchen.net/Downloads/Compendium/UE4_Network_Compendium_by_Cedric_eXi_Neukirchen.pdf)**
>
> 1622.40 KB
