x


Checking if RPC queue is empty?

Hi,

I'm trying to load a multi-player level where the newly connected player will spawn to the newest checkpoint.

The level's events are all done through RPCMode.AllBuffer, including the activation of new check points.

My problem is that I Network.Instantiate my player on OnConnectedToServer(), and apparantly it runs before the Buffered RPC calls are processed.

The solution I'm thinking of is to Network.Instantiate the player only after the Buffered RPCs are all called (hence empty RPC queue), but am unable to achieve it.

Any advice/suggestions are very appreciated.

more ▼

asked Feb 23 '12 at 07:09 PM

RanRanRu gravatar image

RanRanRu
61 1 2 4

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x683
x237
x32
x31
x22

asked: Feb 23 '12 at 07:09 PM

Seen: 481 times

Last Updated: Feb 23 '12 at 07:09 PM