Author Topic: Detect if we're a server  (Read 1515 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Detect if we're a server
« on: May 11, 2014, 10:08:53 AM »
Updating TNet from 1.6.8 to 1.8.5, I saw that in a script you replaced TNManager.isHosting with tno.isMine.
What should I use to detect if a user is the host of others (I'm on making a game using LAN).

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Detect if we're a server
« Reply #1 on: May 11, 2014, 02:03:04 PM »
tno.isMine is the better of the two. Object ownership can be transferred on a per-object basis. Hosting status is global.