# How to test for a pawn CAUSING damage with attack

**URL:** <https://forums.unrealengine.com/t/how-to-test-for-a-pawn-causing-damage-with-attack/113074>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [July 3, 2018, 7:23pm UTC](https://forums.unrealengine.com/t/how-to-test-for-a-pawn-causing-damage-with-attack/113074 "2018-07-03T19:23:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stormreach](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stormreach](https://forums.unrealengine.com/u/Stormreach)\
**Post date:** [July 3, 2018, 7:23pm UTC](https://forums.unrealengine.com/t/how-to-test-for-a-pawn-causing-damage-with-attack/113074/1 "2018-07-03T19:23:03Z")

</div>

I have some code currently in place to test for an actor in a certain location during an attack, and detect the amount of damage it takes, but this feels very inefficient, and I need to apply this code to all creatures, so setting up a special collision box for every single creature would be less-than-optimal.  
All of the events that I’ve found have dealt with a pawn RECEIVING damage, is there any way to test for a pawn CAUSING it, and preferably getting an amount of damage dealt.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/how-to-test-for-a-pawn-causing-damage-with-attack/113074/2 "2022-03-09T21:34:31Z")

</div>


