My GameMode Reference returns NULL all of my variables

Hello… first of all, i am brazilian, so i am sorry if i write something wrong in here.

To be honest i am having this problem to UE4.10, but i seek about this and i found some people that was having this trouble with UE4.13, that is why i put “UE4.13” on “Product Version”.

My problem is that i create a variable called “gameModeRef” that is an reference from my “thirdpersongamemode”, but when i called any variables that i created on this game mode, the variable returns NULL, and i cannot set them neither, because they stays NULL… I am sorry if it was already fixed, i don’t have time to check myself if it is

On bellow, some images about this:

Where are you setting this reference?

I am trying to create a HordeSpawner, so i created an BP Actor with an event, and in my GameMode i set all of my variables and set a timer to take this event on my spawner every second in lopping, to take this variables on gamemode i create a variable on this BP Spawner and i set the type of this variable to a Reference of my GameMode, then i called my variables from my gamemode with this reference

Could you not call GetGameMode and cast it to the same effect?

Wait… i discovered a way right now, i will test this and be right back

Yes, it works… i didn’t know that was a function to get the gamemode object to cast as one gamemode

yes, i didn’t know that was this function, sorry about that kk