Author Topic: Specify Targets  (Read 1643 times)

Manmax75

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 32
    • View Profile
Specify Targets
« on: July 25, 2013, 01:04:19 AM »
Hello,

How may I specify which players will recieve my packet?
Right now I'm sending UDP packets from the authoritative client with:

  1. tno.SendQuickly(1, Target.Others, data)

But now I need to make it so the owner of the object doesn't get the data as well as the authoritative client not getting the data.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Specify Targets
« Reply #1 on: July 25, 2013, 03:43:20 AM »
For what you're trying to do: simply ignore the packet on the client that has tno.isMine set to 'true'.

For private messages: instead of sending it to Target.Others, specify a target player instead.