Page 1 of 1

Zero-K Mission editor

Posted: 25 Feb 2018, 11:26
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

Re: Zero-K Mission editor

Posted: 26 Feb 2018, 05:30
by Google_Frog
The group name is probably a UnitRulesParam, I don't know much more though.