I was messing around with something a few months ago that i think i got to work.. (will have to redo it obviously).
What I did was basicly have all entities scan the area around them, and I used var_send_to to send information to specific entities (players). I believed this work fine. However a friend of mine told me that it was working so well simply because the things and players in the area was very limited, eventually it would start making the entire game lag a bit to soon.
Also, i heard internet player should have bandwidth bellow 1k LAN was 10k...
quote from the manual:
Quote:
Reduce traffic. Send as less data as possible, and use unreliable data whenever possible. On a LAN, you can send and receive with more than 10,000 bps; however on the internet you should not exceed 1000 bps. Know always how many bytes you're sending per frame or per second. Imagine you had to pay one cent per byte (five cents if you're sending in reliable mode). Send only if a variable has really changed, and even then not every frame. For synchronizing global variables, sending one huge array is faster than sending a lot of single variables.