Game state not working?

Hello!
I am having a problem with a newly created game state…
I am following this tutorial: UE4 Blueprint Character Switching - Introduction and Scene Setup (Part 1) - YouTube

In the tutorial he makes a new game state which spawns a second character (i want to create that character switching mechanic for my game prototype).

I did everything exactly like in the tutorial, but somehow the Event begin play node from my game state is never getting fired… i already tried to check this with some print strings and breakpoints…

I did set it correctly in the project/work settings… what is going on here?

137716-world+settings.png

1 Like

Fixed it myself by setting up this piece of blueprint in the gamemode…
Don’t know if it is a good solution, but it worked for me.

1 Like

how to solve that problem . can you say me ?

1 Like

how to solve that problem . can you say me ?

Check if the Parent Class of GameState and GameMode is right

This is old but this is probably the infamous modevsbase class conflict. You gotta make sure everything is consistent in that regard. Most classes have a “Base” class from which they derive (sort of) but you can’t mix them. For example if you use a game mode base class, then all your other classes should also be base if possible. otherwise events won’t fire properly. kind of a pain

2 Likes

I was having the same issue with a new project. One thing to look at is the parent class of your custom game state. If the parent is “Game State” try reparenting it to “Game State Base”.

1 Like