Author Topic: Delaying remote creation calls  (Read 2198 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Delaying remote creation calls
« on: July 30, 2016, 11:45:43 AM »
My levels are procedurally created. At the moment enemies created by the host are appearing before the level is ready and their scripts are failing because they are referencing a tile record that doesn't exist.

Is there a way to stop remote creation calls until ready for them? Otherwise how best should one handle this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Delaying remote creation calls
« Reply #1 on: July 30, 2016, 02:06:23 PM »
TNManager.isPaused = true;

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Delaying remote creation calls
« Reply #2 on: July 30, 2016, 03:23:05 PM »
Does that interfere with TNManager.isJoining?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Delaying remote creation calls
« Reply #3 on: July 31, 2016, 09:45:48 AM »
It pauses it, like all other packets. It just pauses packet processing.