Author Topic: Are the clients sharing OnNetworkJoinChannel?  (Read 2306 times)

addebooi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Are the clients sharing OnNetworkJoinChannel?
« on: November 09, 2013, 07:20:56 PM »
Hey! ive got a small problem here... When i call the "OnNetworkJoinChannel(bool succes, string message)"

What i do in this function is: listOfPlayerInLobby = TNManager.players; which mean when I(the client who joined), joines the channel, get all the players currently in there and put it in a list.
Apparently, every time i call this when a players joins, it sets the list on everyone connected insteed on only himself, which is a wierd behaviur. Ive done debug.logs in there, but when a player joins so doesn't it write anything.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Are the clients sharing OnNetworkJoinChannel?
« Reply #1 on: November 10, 2013, 07:17:10 AM »
OnNetworkJoinChannel notification is triggered when you join a channel. If you're looking to detect for players joining, use OnNetworkPlayerJoin.