I’m making a game similar to buckshot roulette and I have no idea how to make a turn system so that 1 player (out of a max of four) can play and the others cant and whenever someone makes a specific action the turns swap. Right now i tried a system where the server gives a tag to the player with whos turn it is and then the server when ever you do something it checks if has tag. Any ideas?
for context the multiplayer functions are based on this video https://www.youtube.com/watch?v=nBC0C7xrubA&t=11209s
youd probably want the server to set the turn, say via an Enum (player1, player2 etc)
have it repnotify via the gamestate and have the play bind to that event and OnRep you could show a widget (players turn) activate controls etc