# Tell player controllers via game state game ended

**URL:** <https://forums.unrealengine.com/t/tell-player-controllers-via-game-state-game-ended/424887>\
**Category:** Multiplayer & Networking\
**Tags:** game-state, unreal-engine, Multiplayer, Blueprint, question\
**Created:** [May 11, 2018, 7:50pm UTC](https://forums.unrealengine.com/t/tell-player-controllers-via-game-state-game-ended/424887 "2018-05-11T19:50:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CatClicli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CatClicli](https://forums.unrealengine.com/u/CatClicli)\
**Post date:** [May 11, 2018, 7:50pm UTC](https://forums.unrealengine.com/t/tell-player-controllers-via-game-state-game-ended/424887/1 "2018-05-11T19:50:36Z")

</div>

The Game Mode has a countdown on tick. When it reaches zero, it changes the game state to Game Ended. How should the Player Controllers know they have to show the game over widget and disable input?

I’ve tried Get All Player controllers on the Game Mode, but returns an array of length 0.

Player controllers could poll the value, but polling is bad.

The page [Game Mode and Game State | Unreal Engine Documentation](https://docs.unrealengine.com/en-us/Gameplay/Framework/GameMode) doesn’t explain how to fire player controller events on the game state.

I’ve seen on C++ version you have a PostMatch state/event, but I don’t know how to set it nor use it on blueprints.

I’m on multiplayer, blueprint project.

---

<div class="post-metadata">

**Author:** ![CatClicli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CatClicli](https://forums.unrealengine.com/u/CatClicli)\
**Post date:** [May 11, 2018, 8:09pm UTC](https://forums.unrealengine.com/t/tell-player-controllers-via-game-state-game-ended/424887/2 "2018-05-11T20:09:06Z")

</div>

Nevermind, I’ve solved it.

I was calling get all player controllers on BeginPlay meaning the controllers weren’t there yet.

But I improved on that and added the player controller to my player controller array every time I get a Event OnPostLogin.

Next should be keep that updated, of course.
