CocaColaBear Posted August 23, 2013 Share Posted August 23, 2013 Hi all. How best to store information of player: table or in elementData? Link to comment
denny199 Posted August 23, 2013 Share Posted August 23, 2013 Depends how you want to use it, The fast way for scripting is with elementData, but more bandwidth usage, but less updates needed to make for every player Or Tables, you need to update it, and if you want to get the table result on the client side you need to trigger the table to the client's pc, with elementData isn't this needed, you can with elementData loop trough all the players and then get their element data. So, it depends how you want your scripting way, fast with more bandwidth usage or tables with less bandwidth usage. I'm using for all my scripts tables for storage, since it's pretty easy(in my way atleast). Link to comment
Ab-47 Posted August 23, 2013 Share Posted August 23, 2013 I hear using tables is much more easier and more dependable. I'd suggest tables, or if you want a temp data, use setElementData, in-case you want permanent data until the data variable has changed, use setAccountData Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now