# Hold the point Game mechanic

**URL:** <https://forums.unrealengine.com/t/hold-the-point-game-mechanic/2161856>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 1, 2024, 4:58pm UTC](https://forums.unrealengine.com/t/hold-the-point-game-mechanic/2161856 "2024-12-01T16:58:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![User-b9cc7537bf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@User-b9cc7537bf](https://forums.unrealengine.com/u/User-b9cc7537bf)\
**Post date:** [December 1, 2024, 4:58pm UTC](https://forums.unrealengine.com/t/hold-the-point-game-mechanic/2161856/1 "2024-12-01T16:58:33Z")

</div>

I have point in middle of map of a team game. How do I make hold that point mechanic? So when 1 tema reaches some score game ends. I think of a enter a trigger of the point (Cone right now) and then it starts giving points to 1 team?  
UPD Trigger box\>give integrals to 1 team(differ teams by tags), show it in UI \>End game event when number reaches X  
But I dont know how to do it.

 ![2024-12-01_19-55-22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/e/4ae4ceebe7b5e1e8343c22d47c71e69170b24340.jpeg)

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [December 1, 2024, 6:28pm UTC](https://forums.unrealengine.com/t/hold-the-point-game-mechanic/2161856/2 "2024-12-01T18:28:52Z")

</div>

One way to do this:

1. Create an Actor that contains a trigger box. This is the “point” to control.
2. Set up collision for the trigger box to only trigger when Pawns enter.
3. Implement some interface on your player character (pawn) that returns which team the player is on. (Call it “red” or “blue”)
4. Set up two Set variables in your control point blueprint, “BluePlayers” and “RedPlayers.”
5. In On Actor Begin Overlap, call the interface, and see whether the actor belongs to a team. If so, add the actor to the appropriate team set.
6. In On Actor End Overlap, remove the actor from both Sets (you don’t need to do the “which team” logic here, because it’s safe to remove something that isn’t in the set, from a set.)
7. Add a RedScore and BlueScore variable.
8. In Tick, check whether one set is empty and the other is non-empty. In that case, increment to score for that team by the DeltaTime amount.
9. If one score reaches your desired win score, declare win!

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [December 1, 2024, 7:05pm UTC](https://forums.unrealengine.com/t/hold-the-point-game-mechanic/2161856/3 "2024-12-01T19:05:06Z")

</div>

Some inspiration:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/e/61ef9528274c4d123bb302fc97790ed1886a9456.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/5/6d508cf93e9e58e95d1843046546e1d757dbecb1.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/c/59cd7e452afdadce37be4d516917d59b38c10a70.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/0/e60c151d258a5b46f76739d0fae24115741d489a.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/3/e8312a526051b4deba975b54f1a8ae24e895f456.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/8/cf80acc7e8750440daea05385850ad895c616d3a.jpeg)

---

<div class="post-metadata">

**Author:** ![User-b9cc7537bf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@User-b9cc7537bf](https://forums.unrealengine.com/u/User-b9cc7537bf)\
**Post date:** [December 2, 2024, 11:32am UTC](https://forums.unrealengine.com/t/hold-the-point-game-mechanic/2161856/4 "2024-12-02T11:32:53Z")

</div>

Trying. I also saw in LyraStarterGame theres exactly this. A point which also has very good VFX of capturing process. But I think you cant extract that map.
