Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
1)Send Message to [PeerToBeKicked_ID] [tag:"goAway"] [message:""]
2)On Peer diconnect or left room : yay!
Condition: On peer Message "goAway"
Action: Leave room or Disconnect room ......depends on what you want.
Thanks! I'll try that.