Author Topic: RFC Questions  (Read 2981 times)

Voxel

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
RFC Questions
« on: June 29, 2013, 03:31:33 PM »
Hi,

I have two questions about RFC:

  • Is the TNet RFC the equivalent of the built in Unity networking RPC? Sorry if this is a stupid question, but I recently went through Unity tutorials for the in-built Unity Networking, so I am a little bit confused.
  • In the 'Making a game form scratch' tutorial you mention that for UnityScript users should use [Tnet.RFC] however in a previous post you suggest @RFC. Which one should I be using?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: RFC Questions
« Reply #1 on: June 29, 2013, 04:12:31 PM »
1. Yes.
2. @RFC is JavaScript syntax. [RFC] is C# syntax.

Voxel

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Re: RFC Questions
« Reply #2 on: June 29, 2013, 04:54:35 PM »
Perfect! Thank you!

gg67

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 66
    • View Profile
Re: RFC Questions
« Reply #3 on: January 07, 2014, 03:08:08 AM »
When using ints to identify RFC instead of strings, are those ints local to the script or global?
For instance, if I have an [RFC(1)] in script1 and an [RFC(1)] in script2 and I call RFC1 in script1, for example
  1. tno.Send(1, isSavedOnServer ? Target.OthersSaved : Target.Others, mCached);

Will it get confused? Or will it call the function that is RFC(1) in script1?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: RFC Questions
« Reply #4 on: January 07, 2014, 08:57:21 AM »
Relative to the TNObject. Each TNObject can have up to 255 numbered functions.