Think that, you get the data from game loop. But loop is runing server-side, so it seems impossible.  I have a solution for creep role. Generally I set the creep names related to role. For example if the role is Harvester My creep name is Harvester8684 with random number.