A few questions on networking and such
by Matt "Mr. Pig" Razza · in Torque Game Engine · 05/14/2007 (5:22 pm) · 2 replies
I've got a few questions (all about the engine):
1. What's the difference between 'writePacketData' and 'packUpdate' (as seen in player.cc)
2. What's the best way to transfer the "name" of a datablock (I have a datablock var within the player class and need the "name" - or datablock replicated to the client - if that makes any sense)
3. Is there any way to get the "name" of a datablock - for example playerData.getDatablockName(); would return "playerB" because playerB is the datablock as defined in script (and playerData is the var within a class).
Thanks much.
1. What's the difference between 'writePacketData' and 'packUpdate' (as seen in player.cc)
2. What's the best way to transfer the "name" of a datablock (I have a datablock var within the player class and need the "name" - or datablock replicated to the client - if that makes any sense)
3. Is there any way to get the "name" of a datablock - for example playerData.getDatablockName(); would return "playerB" because playerB is the datablock as defined in script (and playerData is the var within a class).
Thanks much.
About the author
Torque 3D Owner Robert Blanchet Jr.