Unitdef.lua

Unitdef.lua

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

Moderator: Moderators

Post Reply
kalda341
Posts: 101
Joined: 19 Nov 2010, 09:44

Unitdef.lua

Post by kalda341 »

Does nyone know of where I could find a complete list of unitdef commands (and hopefully an explanation of what each one does though most are self explanatory)? Thanks.
kalda341
Posts: 101
Joined: 19 Nov 2010, 09:44

Re: Unitdef.lua

Post by kalda341 »

It's fine, I found what I was looking for.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Unitdef.lua

Post by knorke »

does not exist.
what do you need?
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Unitdef.lua

Post by Google_Frog »

kalda341 wrote:It's fine, I found what I was looking for.
I agree with knorke, as far as I know it doesn't exist. What have you found because I'd find it useful.
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: Unitdef.lua

Post by oksnoop2 »

kalda341
Posts: 101
Joined: 19 Nov 2010, 09:44

Re: Unitdef.lua

Post by kalda341 »

No, this: http://springrts.com/wiki/All_FBI-varia ... ault,_type . But that could be helpful too.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Unitdef.lua

Post by Forboding Angel »

knorke wrote:does not exist.
what do you need?
Yes it does:
Course you would never find it because searching for lua unit defs gives you nothing, unit defs gives you nothing, lua unitdefs gives you nothing Even though the page is named Lua unitdefs! The only way to find it is by searching for "unitdefs".

The fucking wiki blows.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Unitdef.lua

Post by knorke »

oh yes that page.
i somehow read the original post as "is there a better page than this one with stuff actually explained."
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Unitdef.lua

Post by Forboding Angel »

Well the values listed are the default values which helps explain quite a bit but I get what you mean.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Unitdef.lua

Post by jK »

Forboding Angel wrote:Yes it does:
warning:
THE INPUT AND THE OUTPUT OF THOSE TAGS ARE NOT THE SAME, NOR ARE THE NAMES OF THOSE TAGS!!!


->Use Units:FBI when you want to edit/create UnitDefs.
->Use Lua_UnitDefs when you want to read UnitDefs in Lua.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Unitdef.lua

Post by Google_Frog »

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Unitdef.lua

Post by jK »

that's a diff problem ;)
kalda341
Posts: 101
Joined: 19 Nov 2010, 09:44

Re: Unitdef.lua

Post by kalda341 »

Thanks.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Unitdef.lua

Post by FLOZi »

Seen as no-one bothered to mention it, a link every Spring modder should have bookmarked:

https://github.com/spring/spring/blob/m ... nitDef.cpp
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Unitdef.lua

Post by Forboding Angel »

Flozi, marry me you sexy beast!
Post Reply

Return to “Lua Scripts”