# How To Tag Player/Enemy/Bullet

**URL:** <https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 4, 2014, 3:50am UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599 "2014-04-04T03:50:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_75cae7c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_75cae7c7](https://forums.unrealengine.com/u/anonymous_user_75cae7c7)\
**Post date:** [April 4, 2014, 3:50am UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599/1 "2014-04-04T03:50:38Z")

</div>

I am curious if someone could share how would I tag my player with “Hero” so I can have only specific collisions happen for actors with the tag “Hero”

The same goes for Enemy and Bullet, Powerup etc.  
The reason being, I notice I can shoot power ups, and only wish to destroy power ups if hero walks into them using the EventOnHit.

Any help would be appreciated, thanks.

P.S. I apologize if Tag is wrong terminology or should I be using Layers.

---

<div class="post-metadata">

**Author:** ![thek3nger\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thek3nger\_1](https://forums.unrealengine.com/u/thek3nger_1)\
**Post date:** [April 4, 2014, 9:09am UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599/2 "2014-04-04T09:09:13Z")

</div>

You can try to use the ClassIsChildOf function to solve your problem. Look at [this other question](https://answers.unrealengine.com/questions/19256/how-to-check-if-an-actor-is-from-a-certain-class.html) for further references.

---

<div class="post-metadata">

**Author:** ![TheDuke4711](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheDuke4711](https://forums.unrealengine.com/u/TheDuke4711)\
**Post date:** [April 4, 2014, 10:25am UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599/3 "2014-04-04T10:25:48Z")

</div>

Please check out the different collision channels. You can also define new collision channels. For the Hero which I assume is a Pawn there you should use the Pawn channel.

---

<div class="post-metadata">

**Author:** ![DizzyWes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DizzyWes](https://forums.unrealengine.com/u/DizzyWes)\
**Post date:** [April 4, 2014, 12:24pm UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599/4 "2014-04-04T12:24:36Z")

</div>

Howdy,

If you wanted, you can use tags as seen below:

 ![3190-actortag1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/3/253b2cafca51e1d71bf491d65733610c3e10db4d.png)

On your “player” character, search in the _Defaults_ for **Tag** and apply the “player” tag.

 ![3211-actortag2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/9/b49c2c9bf79145de025f8affb2684a6c1fb608b6.png)

Any time an overlap occurs on the trigger box example above, it checks for the tag I’ve assigned which is only applied to the player. This should accomplish what you are after.

Hope this helps!

-W

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_75cae7c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_75cae7c7](https://forums.unrealengine.com/u/anonymous_user_75cae7c7)\
**Post date:** [April 4, 2014, 5:21pm UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599/5 "2014-04-04T17:21:18Z")

</div>

Fantastic!!! Thank you kind folks for giving me some insight.  
This answered exactly what I needed.

---

<div class="post-metadata">

**Author:** ![nopunintendo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nopunintendo](https://forums.unrealengine.com/u/nopunintendo)\
**Post date:** [April 6, 2014, 1:08am UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599/6 "2014-04-06T01:08:04Z")

</div>

Exactly what I was looking for. Thanks!

---

<div class="post-metadata">

**Author:** ![Isaac\_Nichols](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Isaac\_Nichols](https://forums.unrealengine.com/u/Isaac_Nichols)\
**Post date:** [June 12, 2014, 3:57am UTC](https://forums.unrealengine.com/t/how-to-tag-player-enemy-bullet/279599/7 "2014-06-12T03:57:20Z")

</div>

Awesome, thanks Wes!
