- Home /
Question by
stringa · Sep 23, 2010 at 08:26 PM ·
networkviewserialize
Serialize NetworkViews to Myself....
Is this possible?
Every time I've written network code, I use network messages to pass around the local players data too. Thus game logic doesn't need to be written differently for local players and network players.
thanks
stringa
Comment
Answer by Dreamora · Sep 23, 2010 at 10:50 PM
As mentioned on the board, you can't use serialize when you want to talk to yourself.
RPC can do that.
But you also don't need it because serialize does nothing (or is not intend to do anything but that) but write the current data to the stream if you are the owner or reading them if you aren't the owner.
and as the one who writes it, you already have the current data
Your answer