How do I retrieve the Multiplayer Kick Reason message

Get help using Construct 2

Post » Tue Jan 27, 2015 2:39 pm

Plugin: Multiplayer
Action: Kick Peer
(This action have an optional "Kick Reason" box)

My problem: I don't know where this "Kick reason" message is stored since there is no "Kick Reason" expression and "Leave Reason" and "Message" seems to not retrieve the kick reason.
Neither the manual or the examples teaches how to retrieve this information.

Thanks in advance.
B
7
S
2
Posts: 25
Reputation: 935

Post » Tue Jan 27, 2015 2:55 pm

Nevermind, just found the solution.
I just have to use the condition "On Peer Disconnected" to retrieve the kick reason with Multiplayer.leavereason.
I was using the condition "On Kicked". That was the problem.

This thread can be closed.
B
7
S
2
Posts: 25
Reputation: 935


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests