How do I Disconnect the peers from a multiplayer game?

Get help using Construct 2

Post » Tue Aug 26, 2014 4:00 pm

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.
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 2
Reputation: 179

Post » Tue Aug 26, 2014 7:06 pm

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.
B
20
S
7
G
1
Posts: 221
Reputation: 2,077

Post » Tue Aug 26, 2014 7:17 pm

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.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Wed Aug 27, 2014 2:04 am

Thanks! I'll try that.
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 19 guests