Page 1 of 1

Unit names

Posted: 11 Oct 2010, 00:09
by UAF
Where can I find a list of the unit 'code' names? (BA specifically)

I mean, if I want a widget to go over the game units and see if one of them is a commander, I need to compare it to 'corcom' or 'armcom'.

Where is the full list?

Re: Unit names

Posted: 11 Oct 2010, 00:10
by Gota
a bit outdated.
I assume you mean a place where you can easily see the unit and the unit name.
http://modinfo.adune.nl/

Re: Unit names

Posted: 11 Oct 2010, 14:46
by UAF
Thanks

Re: Unit names

Posted: 13 Oct 2010, 06:04
by knorke
also ingame type
/cheat
then
/give
and press tab for a list.
and see if one of them is a commander

Code: Select all

	local unitDef = UnitDefs[Spring.GetUnitDefID(unitID)]
	if (unitDef.isCommander == true) then