Unit names

Unit names

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
UAF
Posts: 96
Joined: 02 Jan 2008, 19:25

Unit names

Post 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?
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Unit names

Post 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/
UAF
Posts: 96
Joined: 02 Jan 2008, 19:25

Re: Unit names

Post by UAF »

Thanks
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Unit names

Post 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
Post Reply

Return to “Lua Scripts”