what does unitDefID mean?

what does unitDefID mean?

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

Moderator: Moderators

Post Reply
yanom
Posts: 323
Joined: 10 Jul 2009, 23:34

what does unitDefID mean?

Post by yanom »

I see the word unitDefID alot on Lua call-in's and call-out's, often in the same context as unitID and teamID
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: what does unitDefID mean?

Post by knorke »

every unit has a unitID, a unique number for each unit.
every unittype has a unitDefID, it is also a number and unique to that unittype
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: what does unitDefID mean?

Post by FLOZi »

The same dichotomy applies to weapons;

A type or class of weapon, (or a weapon definition; hence weaponDefID) vs. an individual instance of that weapon on an individual unit.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: what does unitDefID mean?

Post by zwzsg »

Lassie is a unitID
Dog is a unitDefID
Post Reply

Return to “Lua Scripts”