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: 190
Joined: 08 Oct 2006, 10:33

Zero-K Mission editor

Post by daryl » 25 Feb 2018, 11:26

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
0 x

Google_Frog
Moderator
Posts: 2442
Joined: 12 Oct 2007, 09:24

Re: Zero-K Mission editor

Post by Google_Frog » 26 Feb 2018, 05:30

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

Post Reply

Return to “Lua Scripts”

cron