Accessing a variable from the gamemode/gamestate as a client
in my project I want my game mode to have an array variable that contains the default weapons that anyone would spawn with. However, because the game mode is only accessible by the server, only the host is able to access that variable. I read that game states can have variables that are shared across the server and all clients, so should I put that default weapons variable in the game state instead? Are there any other solutions (can I send that array to the game state so everyone can access it for example)?
asked Nov 27 '17 at 12:34 PM in C++ Programming
A Lonely Alien
Follow this question
Once you sign in you will be able to subscribe for any updates here