Hi, I'm making a multiplayer game but I need to know how to forcibly disconnect the peers but keep the Host online when certain conditions are met, I just can't find an action that expel the peers.
Please help.
While I don't see a kick option for the Host to act with you could just send a message to a peer that they then will call a function on their side to leave the room or disconnect them selves. The Host will need a loop to verify and resend if peer is still in room after x amount of time.
Host
1)Send Message to [PeerToBeKicked_ID] [tag:"goAway"] [message:""]
2)On Peer diconnect or left room : yay!
Peer
Condition: On peer Message "goAway"
Action: Leave room or Disconnect room ......depends on what you want.
Develop games in your browser. Powerful, performant & highly capable.
Thanks! I'll try that.