Hello, I have asked this question before also I dont believe that people really understand what I meant, so I will try again.
There I am seeking is to see if this is a good way to deal with players/enemie entitys running around in an online game.
So all characters ingame have an "Entity" array like this:
irr:: core:: array <CEntity *> pInRangeEntities;
So that keeps track of the players who are "InRange" of my character and not InRange of it.
My question is how you would handle thinks like this, Like add and remove players / enemies from the current player to avoid updating players/enemies that you dont see.
My way is to check whenever any player/enemie will be InRange of my character, if someone is then check it if this "Player/Enemie" exists, if it does not exist, then it will be added to the list and send an update that include information about the new "Entity" like position, animation etc and also create the object to the player who dident have that "Entity" in the list.
Hope you understand my question and what I mean, and feel free to come with tips on how you would have done it.
Thank you very much!
Ps, My english is kinda bad.


