Awesome, thanks! Makes things much more efficient.Evil4Zerggin wrote:You basically have to use CommandsChanged if you want a callin for when the selection changes.
Added to wiki btw...
How about this: Maybe the best of both worlds: Send only differences but send, lets say, every 10 seconds a full update?CarRepairer wrote: Interesting idea but yes this could end up with strange errors if something goes wrong.
Here is a small update. Still not tested by me

What changed:
-Units selected by teammates are locked (cannot be selected by yourself)
-Callin driven (less cpu load)
-Sends max 300 (is it too much?) units per update interval (100ms atm). If more has changed, it gets split up over multiple frames.
-Sends full refresh every 10 seconds
-"Hot" units: Units that received a command in the last 7 seconds (customizable) will get a red circle which fades away within those 7 seconds.
One thing:
I assume the callin "UnitCommand" is also called when a teammate gives a command? The "Hot"-unit stuff wont work if thats not true. Maybe someone who knows for sure about it can tell.