Zero-K Mission editor

Zero-K Mission editor

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

Moderator: Moderators

Post Reply
User avatar
daryl
Posts: 195
Joined: 08 Oct 2006, 10:33

Zero-K Mission editor

Post by daryl »

hello,

Can I get, via lua, the group name of a unit created via Zero-K mission editor?

i would like implement my code

Code: Select all

com=Spring.CreateUnit("icucom",6900,0,11400,0,1)

atlas= "get the group name setted in Zero-K mission editor"

Spring.GiveOrderToUnit(atlas, CMD.LOAD_UNITS, { com }, {"shift"})
Spring.GiveOrderToUnit(atlas, CMD.UNLOAD_UNITS, {3200,0,3500,0}, {"shift"})
It's possible?
thx
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Zero-K Mission editor

Post by Google_Frog »

The group name is probably a UnitRulesParam, I don't know much more though.
Post Reply

Return to “Lua Scripts”