Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Elmo loves cookies on May 16, 2016, 12:34:01 PM

Title: Tnet 3.0 Network Lobby
Post by: Elmo loves cookies 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?
Title: Re: Tnet 3.0 Network Lobby
Post by: ArenMook 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;