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"})
thx