Command & Conquer Tiberium Alliances Forum
[NOT SPAM] Game units id - Printable Version

+- Command & Conquer Tiberium Alliances Forum (http://forum.alliances.commandandconquer.com)
+-- Forum: Tiberium Alliances (/forumdisplay.php?fid=33)
+--- Forum: Tools & Third Party Scripts (/forumdisplay.php?fid=125)
+--- Thread: [NOT SPAM] Game units id (/showthread.php?tid=81774)



[NOT SPAM] Game units id - ArveK - 19-04-2017 07:42 PM

Hi,

Does anyone know a way to get the Id's for defense and offense units? The uniqe Id's for buildings can be gathered via the GAMEDATA.Tech[ID] method, but I have not been able to find a way to get unit Id's. I have only managed to get their object names (GDI_Pitbull, NOD_Cobra etc with .get_UnitGameData_Obj...)

Edit: The reason for wanting to get their Id's is to determine if a unit have had its research upgraded (ie. shields for cobra). However, if there is another method to see this, that would work for me as well Smile

For code reference, see the Cncopt script