Trying to this but it doesn’t matter on which client it runs it always calls the same game instance and not the players own game instance:
Any ideas?
Thanks in advance.
Trying to this but it doesn’t matter on which client it runs it always calls the same game instance and not the players own game instance:
Any ideas?
Thanks in advance.
A player does not have a game instance, the game does. The game session only has one game instance which is a singleton that persists for the lifetime of the game.
If you are referring to networking, you might be thinking of the game state, which is a singleton that each client has, or the player state, which is a singleton each player controller has. (Note that a player and client are not the same)
See:
This forum answer might also help: