Clean way to get variables from game instance to server?

Maffinius
Fri, 02 Jul 2021 16:37:56 +0000
Multiplayer & Networking

Hey all,

iam trying to get a simple integer from the game instance to the game server when/after loading the main level. But it seems like iam doing something fundamentally wrong (i guess) because nothing i have tried works. The player- /gamestate is not valid on clients or the function iam trying to get the value simply doesn’t execute for some reason so nothing happens at all. Or i get a value but from the wrong gameinstance.
Is there a simple way of getting an integer (or any other information) from all clients game instances to the gamemode/gamestate?

Thanks for any input iam lost since a week now!
M

2 posts - 1 participant