# Creating a tag game

**URL:** <https://forums.unrealengine.com/t/creating-a-tag-game/413413>\
**Category:** Blueprint\
**Tags:** oncomponentbeginover, tag, unreal-engine, Blueprint, question\
**Created:** [December 30, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/creating-a-tag-game/413413 "2017-12-30T17:04:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RpgSlayer707](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RpgSlayer707](https://forums.unrealengine.com/u/RpgSlayer707)\
**Post date:** [December 30, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/creating-a-tag-game/413413/1 "2017-12-30T17:04:54Z")

</div>

Hi so I am creating a 3 player tag game. So far I have it so it randomly chooses who is it. I also have it so it knows who is it. That is all in the level blueprint. I cannot however figure out how to tag someone. I want it so when a player hits another player he becomes it but I don’t know how to set that up. Any help appreciated!

---

<div class="post-metadata">

**Author:** ![Dartanlla](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dartanlla/32/724052_2.png) [@Dartanlla](https://forums.unrealengine.com/u/Dartanlla)\
**Post date:** [December 30, 2017, 6:14pm UTC](https://forums.unrealengine.com/t/creating-a-tag-game/413413/2 "2017-12-30T18:14:57Z")

</div>

The simplest method is to use the collision capsule on your character. Go to the Viewport on your character, select the Capsule Component, scroll down in the properties and click on the green + next to On Component Hit. This will create an event where you can check the “Other Actor” you hit and transfer “IT” to them.

A more complex method, would be to have a key you press to tag an opponent. Play an anim montage to play an animation where your arm stretches out to tag them. Have a collision sphere on your hand and check for a hit or overlap event on that collision sphere. If this is a multiplayer network game you would need to put the anim montage in an RPC call to the server to make sure that the anim montage plays on all clients and the server and then use the server to register the collision event to prevent cheating.

---

<div class="post-metadata">

**Author:** ![RpgSlayer707](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RpgSlayer707](https://forums.unrealengine.com/u/RpgSlayer707)\
**Post date:** [December 30, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/creating-a-tag-game/413413/3 "2017-12-30T20:56:27Z")

</div>

I get what your saying with the simple method but I don’t know how to give It. I have the event but the blueprint for all the tag stuff is in the level blueprint and even if I don’t use it. “Is It” is a variable so how can I carry that through the blueprints.

---

<div class="post-metadata">

**Author:** ![RpgSlayer707](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RpgSlayer707](https://forums.unrealengine.com/u/RpgSlayer707)\
**Post date:** [December 30, 2017, 9:16pm UTC](https://forums.unrealengine.com/t/creating-a-tag-game/413413/4 "2017-12-30T21:16:58Z")

</div>

Nevermind I got it figured out. Thanks for the help 😃
