Jump to content

Recommended Posts

Posted

How do I obtain the unit object if I know its unitID? There isn't a Unit.getByID(unitID) command, correct?

 

For illustration, if I know a unit's name I can get the unit object simply using Unit.getByName('unit name'), but how do I do that when I only know the unitID?

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

Posted
Build a DB categorized by unitId and use it as a lookup table essentially. This is the specific reason mist.DBs.groupsById and mist.DBs.unitsById was created.

 

Great, thanks!

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...