Author Topic: Tnet 3.0 Network Lobby  (Read 3685 times)

Elmo loves cookies

  • Jr. Member
  • **
  • Thank You
  • -Given: 60
  • -Receive: 1
  • Posts: 62
    • View Profile
Tnet 3.0 Network Lobby
« on: May 16, 2016, 12:34:01 PM »
How I can send from "host"(first in channel) to all clients in the channel - start game(load specific level)?
I think what I should use [RFC], but how I can take all clients in this channel for sending it to them?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tnet 3.0 Network Lobby
« Reply #1 on: May 18, 2016, 05:40:46 AM »
TNManager.LoadLevel will send it to everyone, including players that join later.

I am not sure what "how I can take all clients in this channel for sending it to them" means. Do you mean prevent others from sending it? If so, just check
  1. if (!TNManager.isHosting) return;