Page 1 of 1

GetUnitStringID(id))

Posted: Wed Apr 17, 2013 5:44 pm
by enric
With GetUnitStringID(id)) we can get the name of the passed unit's id.
But when knowing the generic ID (i.e. 0 for Sherman, 1 for M10, etc.) but not the scenario unit id, how can I get the Name?

Re: GetUnitStringID(id))

Posted: Wed Apr 17, 2013 6:29 pm
by AndrewGardner
GetUnitStringID(id) just returns the ID column for that that unit's squad type so if you already know that value, you could use PrintStringIndexed("IDS_UNITNAME", #) or PrintString("IDS_UNITNAME#")