Dynamic Fields on SimObjects, Networking and RPG's
by Jaimi McEntire · in Torque Game Engine Advanced · 02/17/2009 (6:50 pm) · 1 replies
Do dynamic Fields on SimObjects get sent down from the server to the client? If so, does this happen on assignment? Or would I need to specifically call CommandToClient() and send it down that way?
Currently, I'm putting all of my stat information in the Player class. They're initialized in the PlayerData (from the datablock), and then copied into the Player in the OnNewDatablock() member function.But now that I am adding skills, this is starting to get a little unwieldy - Is this the "correct" way, or is there an easier way?
Currently, I'm putting all of my stat information in the Player class. They're initialized in the PlayerData (from the datablock), and then copied into the Player in the OnNewDatablock() member function.But now that I am adding skills, this is starting to get a little unwieldy - Is this the "correct" way, or is there an easier way?
Associate William Lee Sims
Machine Code Games
One other thing I've done on very small classes is pack the information each time it changes into a parsable string and send that using commandToClient calls.