# \#game-state

**URL:** https://forums.unrealengine.com/tag/game-state/4125.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Game Instance is not saving array](https://forums.unrealengine.com/t/game-instance-is-not-saving-array/2548898)

<div class="topic-metadata">

**Author:** [@sweeetjd](https://forums.unrealengine.com/u/sweeetjd)\
**Replies:** 4\
**Last updated:** [June 9, 2025, 10:58pm UTC](https://forums.unrealengine.com/t/game-instance-is-not-saving-array/2548898 "2025-06-09T22:58:32Z")

</div>

I am trying to make my game remember the level state between deaths. Right now, it works as follows: Collected items and destroyed objects are stored in the game state temporarily. When the player reaches a checkpoint…

---

## [Game State character freeze issue](https://forums.unrealengine.com/t/game-state-character-freeze-issue/1154336)

<div class="topic-metadata">

**Author:** [@1vertical](https://forums.unrealengine.com/u/1vertical)\
**Replies:** 0\
**Last updated:** [May 4, 2023, 3:20pm UTC](https://forums.unrealengine.com/t/game-state-character-freeze-issue/1154336 "2023-05-04T15:20:45Z")

</div>

Hi folks, As soon as I override my Game State (child BP of game state actor (not game state base) with one extra variable of type byte for total keys collected) in World Settings. If I run the game in the editor, my cha…

---

## [Keeping session id with non-UE server](https://forums.unrealengine.com/t/keeping-session-id-with-non-ue-server/431844)

<div class="topic-metadata">

**Author:** [@Pete\_the\_B](https://forums.unrealengine.com/u/Pete_the_B)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 10:35am UTC](https://forums.unrealengine.com/t/keeping-session-id-with-non-ue-server/431844 "2022-06-14T10:35:31Z")

</div>

Hi, I’m trying to create a client with UE which will connect to a non-UE game server. The server requires a session identifier for communication, and that identifier can be obtained by a simple HTTP login call. I’m tryi…

---

## [Best way to store the winner of a multiplayer game?](https://forums.unrealengine.com/t/best-way-to-store-the-winner-of-a-multiplayer-game/488627)

<div class="topic-metadata">

**Author:** [@ultrapingu](https://forums.unrealengine.com/u/ultrapingu)\
**Replies:** 0\
**Last updated:** [September 10, 2021, 4:09pm UTC](https://forums.unrealengine.com/t/best-way-to-store-the-winner-of-a-multiplayer-game/488627 "2021-09-10T16:09:05Z")

</div>

Ok I have a Game Mode, and a Game State, the game mode counts player kills and when a player reaches 10, the game mode enters the end state. It stores the winner on the game state, which the clients then read to display …

---

## [Round Timer for multiplayer, Game Mode or Game State](https://forums.unrealengine.com/t/round-timer-for-multiplayer-game-mode-or-game-state/484978)

<div class="topic-metadata">

**Author:** [@HELIXHEX6](https://forums.unrealengine.com/u/HELIXHEX6)\
**Replies:** 1\
**Last updated:** [June 16, 2021, 3:42pm UTC](https://forums.unrealengine.com/t/round-timer-for-multiplayer-game-mode-or-game-state/484978 "2021-06-16T15:42:48Z")

</div>

Hello, I’m making my ever first multiplayer game and I’m not sure at all where should I create my round timer, in Game Mode or in Game State?

---

## [Game State vs. Game Mode](https://forums.unrealengine.com/t/game-state-vs-game-mode/326989)

<div class="topic-metadata">

**Author:** [@Fristomer](https://forums.unrealengine.com/u/Fristomer)\
**Replies:** 4\
**Last updated:** [August 4, 2018, 9:59pm UTC](https://forums.unrealengine.com/t/game-state-vs-game-mode/326989 "2018-08-04T21:59:50Z")

</div>

So I’m trying to build a game for multiplayer and trying to build the battle system. I just read that I should use “Game State” parent class, instead of the Game Mode parent class. Is this understood correctly? Do I need…

---

## [Blackboard or GameState?](https://forums.unrealengine.com/t/blackboard-or-gamestate/426960)

<div class="topic-metadata">

**Author:** [@CatClicli](https://forums.unrealengine.com/u/CatClicli)\
**Replies:** 9\
**Last updated:** [June 8, 2018, 5:16pm UTC](https://forums.unrealengine.com/t/blackboard-or-gamestate/426960 "2018-06-08T17:16:10Z")

</div>

I’m making a kind of Capture the Flag game. I would like to let the AI know where the players and the flags are, should I use Game State, Blackboard or EQS for this? The Blackboard was my first choice, but there is no …

---

## [Tell player controllers via game state game ended](https://forums.unrealengine.com/t/tell-player-controllers-via-game-state-game-ended/424887)

<div class="topic-metadata">

**Author:** [@CatClicli](https://forums.unrealengine.com/u/CatClicli)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 8:09pm UTC](https://forums.unrealengine.com/t/tell-player-controllers-via-game-state-game-ended/424887 "2018-05-11T20:09:06Z")

</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 P…

---

## [Can't access gameState or gamemode](https://forums.unrealengine.com/t/cant-access-gamestate-or-gamemode/387089)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f7c0f7221](https://forums.unrealengine.com/u/anonymous_user_f7c0f7221)\
**Replies:** 2\
**Last updated:** [March 6, 2017, 2:02pm UTC](https://forums.unrealengine.com/t/cant-access-gamestate-or-gamemode/387089 "2017-03-06T14:02:47Z")

</div>

Hi, I derived a blueprint class from a cpp class (which itself derives from UObject). I am trying to access either GameState or GameMode in that blueprint but it doesnt show up on the menu. I also tried to create that …

---

## [Need major help with game mode and game state problems/bugs in multiplayer (spawning, spectating, delayed start, match state machine)](https://forums.unrealengine.com/t/need-major-help-with-game-mode-and-game-state-problems-bugs-in-multiplayer-spawning-spectating-delayed-start-match-state-machine/319188)

<div class="topic-metadata">

**Author:** [@Calamus056\_1](https://forums.unrealengine.com/u/Calamus056_1)\
**Replies:** 1\
**Last updated:** [December 29, 2016, 7:48pm UTC](https://forums.unrealengine.com/t/need-major-help-with-game-mode-and-game-state-problems-bugs-in-multiplayer-spawning-spectating-delayed-start-match-state-machine/319188 "2016-12-29T19:48:28Z")

</div>

I am trying to make a simple multplayer level where players (including the server) start as spectator at the player start. When the server starts the game i want everyone to spawn. But since it’s not working AT ALL, i h…

---

## [Some Questions on MMO Framework](https://forums.unrealengine.com/t/some-questions-on-mmo-framework/379853)

<div class="topic-metadata">

**Author:** [@Ineedcash12](https://forums.unrealengine.com/u/Ineedcash12)\
**Replies:** 1\
**Last updated:** [December 21, 2016, 6:14pm UTC](https://forums.unrealengine.com/t/some-questions-on-mmo-framework/379853 "2016-12-21T18:14:33Z")

</div>

Hello everyone! I have some questions on what the best practice, of which I am sure there are many, on how to handle MMO communication from a design aspect. Some details to start. I have a MYSQL database able to store…

---

## [Script execution order, when to initialize an object in GameState that is used by Controllers and HUDs?](https://forums.unrealengine.com/t/script-execution-order-when-to-initialize-an-object-in-gamestate-that-is-used-by-controllers-and-huds/359574)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_beeaf1ad](https://forums.unrealengine.com/u/anonymous_user_beeaf1ad)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 7:25am UTC](https://forums.unrealengine.com/t/script-execution-order-when-to-initialize-an-object-in-gamestate-that-is-used-by-controllers-and-huds/359574 "2016-12-15T07:25:55Z")

</div>

Hello, I have a PlayerController for my Camera pawn. Within the controller I hook into Event:BeginPlay and the BeginPlay function bootstraps the PlayerController. One of the steps in this bootstrap process is to call my…

---

## [Access to game state without cast every time?](https://forums.unrealengine.com/t/access-to-game-state-without-cast-every-time/379066)

<div class="topic-metadata">

**Author:** [@Daniel\_K](https://forums.unrealengine.com/u/Daniel_K)\
**Replies:** 4\
**Last updated:** [December 12, 2016, 5:38pm UTC](https://forums.unrealengine.com/t/access-to-game-state-without-cast-every-time/379066 "2016-12-12T17:38:09Z")

</div>

I understand concept of GameState, but I feel bit annoyed that I would need to cast it to my class every time I need to read or write variable from it. I have created a macro library blueprint essentially just to wrap ar…

---

## [How to use Game States](https://forums.unrealengine.com/t/how-to-use-game-states/371679)

<div class="topic-metadata">

**Author:** [@yghtim](https://forums.unrealengine.com/u/yghtim)\
**Replies:** 1\
**Last updated:** [September 26, 2016, 7:19pm UTC](https://forums.unrealengine.com/t/how-to-use-game-states/371679 "2016-09-26T19:19:10Z")

</div>

How to use Game State? So according to internet Game State is used to keep track of for example match scores. Good! But how do i use it? I did so when i kill another player, that player casts to the game state and adds…

---

## [How to make the client move actors owned by the server?](https://forums.unrealengine.com/t/how-to-make-the-client-move-actors-owned-by-the-server/359097)

<div class="topic-metadata">

**Author:** [@VenomBHz](https://forums.unrealengine.com/u/VenomBHz)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 8:44am UTC](https://forums.unrealengine.com/t/how-to-make-the-client-move-actors-owned-by-the-server/359097 "2016-05-31T08:44:08Z")

</div>

I need some help, I’m working on a boardgame and when I move the pieces (owned by the server) they move for the client, but not the opposite. I found this workaround: Client to server replication in blueprints - Multipl…

---

## [Unknown Cook Error - can't edit Game State](https://forums.unrealengine.com/t/unknown-cook-error-cant-edit-game-state/353522)

<div class="topic-metadata">

**Author:** [@Blue669](https://forums.unrealengine.com/u/Blue669)\
**Replies:** 2\
**Last updated:** [April 11, 2016, 2:09pm UTC](https://forums.unrealengine.com/t/unknown-cook-error-cant-edit-game-state/353522 "2016-04-11T14:09:33Z")

</div>

Hello! After upgrading to the latest 4.11.1, I cannot compile my project into a stand alone version anymore. When I am cooking the game, the console tells me about an Unknown Cooking Error. When I read the log, the Game…

---

## [How to access Widget Blueprint objects from Level Blueprint?](https://forums.unrealengine.com/t/how-to-access-widget-blueprint-objects-from-level-blueprint/348851)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_96465afa](https://forums.unrealengine.com/u/anonymous_user_96465afa)\
**Replies:** 2\
**Last updated:** [February 27, 2016, 12:09pm UTC](https://forums.unrealengine.com/t/how-to-access-widget-blueprint-objects-from-level-blueprint/348851 "2016-02-27T12:09:17Z")

</div>

Hi. I’m pretty new to UE4. How to access widget blueprints objects from level blueprint? I have some image button in widget blueprint. I want to connect events of these buttons to game state. I don’t know how to do it.

---

## [Load current game state?](https://forums.unrealengine.com/t/load-current-game-state/332683)

<div class="topic-metadata">

**Author:** [@markedgrave1144](https://forums.unrealengine.com/u/markedgrave1144)\
**Replies:** 0\
**Last updated:** [September 18, 2015, 7:01pm UTC](https://forums.unrealengine.com/t/load-current-game-state/332683 "2015-09-18T19:01:50Z")

</div>

Am working on a jrpg in which I have one monster patrolling but when you collide with him you transition to a battlefield. After the combat I want to load back in at that same spot and delete the enemy actor. Could som…

---

## [Cast to Character using Player State?](https://forums.unrealengine.com/t/cast-to-character-using-player-state/329407)

<div class="topic-metadata">

**Author:** [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Replies:** 5\
**Last updated:** [August 23, 2015, 11:13am UTC](https://forums.unrealengine.com/t/cast-to-character-using-player-state/329407 "2015-08-23T11:13:39Z")

</div>

Hello, I’m currently trying to run a script (“Game Over Screen”) from the MyCharacter blueprint (see picture below) and I need to cast to it, because I’m in the “NewGameState” blueprint (it’s my custom Game State). The …

---

## [Custom GameState isn't used in Shipping build](https://forums.unrealengine.com/t/custom-gamestate-isnt-used-in-shipping-build/322902)

<div class="topic-metadata">

**Author:** [@kgamble](https://forums.unrealengine.com/u/kgamble)\
**Replies:** 13\
**Last updated:** [July 22, 2015, 1:29pm UTC](https://forums.unrealengine.com/t/custom-gamestate-isnt-used-in-shipping-build/322902 "2015-07-22T13:29:28Z")

</div>

We recently upgraded from 4.7 to 4.8 and we’ve found that the custom GameState class we use is no longer created when we package a build and run it or when we use the launch option. The class settings for the game mode o…

---

## [Game Instance and Game State difference](https://forums.unrealengine.com/t/game-instance-and-game-state-difference/325604)

<div class="topic-metadata">

**Author:** [@Dannyk90](https://forums.unrealengine.com/u/Dannyk90)\
**Replies:** 1\
**Last updated:** [July 17, 2015, 10:29am UTC](https://forums.unrealengine.com/t/game-instance-and-game-state-difference/325604 "2015-07-17T10:29:25Z")

</div>

If there are 4 servers for example playing their own individual game and if I have my chat updating in gamestate, does that mean that all 4 games on their individual server will all update with the same chat ? Or am I t…

---

## [Problem for Getting player array from Game State](https://forums.unrealengine.com/t/problem-for-getting-player-array-from-game-state/306508)

<div class="topic-metadata">

**Author:** [@Ganesh\_Mune\_1](https://forums.unrealengine.com/u/Ganesh_Mune_1)\
**Replies:** 1\
**Last updated:** [May 25, 2015, 1:24am UTC](https://forums.unrealengine.com/t/problem-for-getting-player-array-from-game-state/306508 "2015-05-25T01:24:25Z")

</div>

Hi friends, I want to get the scores of all players connected in my game, so I get the array of players form game state but when i get the array on client pc the index of all players are same and work well for all clien…

---

## [Multiplayer HUD](https://forums.unrealengine.com/t/multiplayer-hud/313329)

<div class="topic-metadata">

**Author:** [@MarsaPalas\_1](https://forums.unrealengine.com/u/MarsaPalas_1)\
**Replies:** 1\
**Last updated:** [April 3, 2015, 12:53pm UTC](https://forums.unrealengine.com/t/multiplayer-hud/313329 "2015-04-03T12:53:59Z")

</div>

Please, help! I have a simple multiplayer game, 2 players, each has it’s health value that is stored in MyGameState blueprint. I need to set both health values on each player’s canvas. I’ve found \[this\]\[1\] post that de…

---

## [Could I get some information about saving game data?](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895)

<div class="topic-metadata">

**Author:** [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Replies:** 4\
**Last updated:** [January 4, 2015, 2:58am UTC](https://forums.unrealengine.com/t/could-i-get-some-information-about-saving-game-data/284895 "2015-01-04T02:58:38Z")

</div>

For a persistent world, should I be manually tracking all actors created or modified during gameplay for saving, or is there a ‘quick save’ kind of feature that can take care of tracking what existed in the map before an…

---

## [What does Get Game State node do?](https://forums.unrealengine.com/t/what-does-get-game-state-node-do/294561)

<div class="topic-metadata">

**Author:** [@Nevermore](https://forums.unrealengine.com/u/Nevermore)\
**Replies:** 1\
**Last updated:** [September 25, 2014, 2:45pm UTC](https://forums.unrealengine.com/t/what-does-get-game-state-node-do/294561 "2014-09-25T14:45:12Z")

</div>

Hello, As in topic. I was wondering if I can use it to save map state(objects location and states), but cant find any documentation on this node.

---

## [Calling function in custom game state causes crash](https://forums.unrealengine.com/t/calling-function-in-custom-game-state-causes-crash/285088)

<div class="topic-metadata">

**Author:** [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Replies:** 2\
**Last updated:** [July 17, 2014, 3:29pm UTC](https://forums.unrealengine.com/t/calling-function-in-custom-game-state-causes-crash/285088 "2014-07-17T15:29:13Z")

</div>

I have a custom weapon which on creation should call a function in the custom game state to “register itself”, so the game state has it in a variable for quick reference. After setting this up everything compiles fine.…
