wolle Posted May 31, 2018 Posted May 31, 2018 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
Grimes Posted June 1, 2018 Posted June 1, 2018 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. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
wolle Posted June 4, 2018 Author Posted June 4, 2018 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
Recommended Posts