# How to make my turret do damage

**URL:** <https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277>\
**Category:** Community & Industry Discussion\
**Tags:** damage, turret, unreal-engine, player, question\
**Created:** [August 3, 2019, 12:26am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277 "2019-08-03T00:26:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fatherbongrip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatherbongrip](https://forums.unrealengine.com/u/Fatherbongrip)\
**Post date:** [August 3, 2019, 12:26am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/1 "2019-08-03T00:26:11Z")

</div>

The turret will lock on to player and show that the bullet is hitting the player but it wont do any damage

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [August 3, 2019, 1:38am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/2 "2019-08-03T01:38:40Z")

</div>

You will need to use Apply Damage node, when the bullet collides with an object. Then on the character that has to receive damage you will need to use Event Any Damage and subtract damage received.

---

<div class="post-metadata">

**Author:** ![Fatherbongrip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatherbongrip](https://forums.unrealengine.com/u/Fatherbongrip)\
**Post date:** [August 3, 2019, 1:47am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/3 "2019-08-03T01:47:41Z")

</div>

Ive tired that and it still nothing. I can even see that a print string is saying HIT so i know its hitting the player

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [August 3, 2019, 2:02am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/4 "2019-08-03T02:02:26Z")

</div>

Can you post some screenshots of the code? Let’s see how you’re trying to apply damage.

---

<div class="post-metadata">

**Author:** ![Fatherbongrip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatherbongrip](https://forums.unrealengine.com/u/Fatherbongrip)\
**Post date:** [August 3, 2019, 2:04am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/5 "2019-08-03T02:04:33Z")

</div>

![283998-damage.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/7/6279ab3ff0f54341f09154729899eae083a7b805.jpeg)

---

<div class="post-metadata">

**Author:** ![Fatherbongrip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatherbongrip](https://forums.unrealengine.com/u/Fatherbongrip)\
**Post date:** [August 3, 2019, 2:07am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/6 "2019-08-03T02:07:40Z")

</div>

![284011-damage-to.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/3/e63e1af9ed37a7d06785112bfaaf19dfd8d2478b.jpeg)

---

<div class="post-metadata">

**Author:** ![Fatherbongrip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatherbongrip](https://forums.unrealengine.com/u/Fatherbongrip)\
**Post date:** [August 3, 2019, 2:13am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/7 "2019-08-03T02:13:39Z")

</div>

I copied the one above with any damage

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [August 3, 2019, 4:03pm UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/8 "2019-08-03T16:03:58Z")

</div>

Hey there,  
I didn’t know you were doing this in multiplayer and because I didn’t know anything about replication I had to do some digging. **[This Video Tutorial][1]** helped me a lot.

This is my setup right now, based on the video. What I’m doing is damaging a new actor in the level and both players can see the same thing, at the same time.

Below is my shooting script inside FPS Character, projectile and damaged actor. Health var inside damaged actor is being replicated.

My video **[here][2]** showing the results.

 ![284051-shootingscript.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/6/90691bcfc72fbe69cfe9801010f321e7c9776646.png)

![284052-customevent.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/f/e1f3d99c1607babed02ffdeeb782354e2fe340bc.png)

 ![284053-eventanydamagecube.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/3/933fe7b96271009ed42b05189636b7c58076ed61.png)

 ![284054-projectilegraph.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/e/a6e0c220a1c206a37f1acce0b367d1a6b457a69f.png)

---

<div class="post-metadata">

**Author:** ![Fatherbongrip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fatherbongrip](https://forums.unrealengine.com/u/Fatherbongrip)\
**Post date:** [August 4, 2019, 4:30am UTC](https://forums.unrealengine.com/t/how-to-make-my-turret-do-damage/453277/9 "2019-08-04T04:30:40Z")

</div>

Thank you so much! It did have to do with server and client side, now i got to figure out how to make it work with the server side.
