KnightHawk75 -> RE: Lua Command for Creating a Group? (5/25/2020 9:58:14 AM)
|
@ProdigyofMilitaryPride - What issues are you having\running into assigning units to groups? while creating: see https://www.matrixgames.com/forums/tm.asp?m=4816227 After: local u; u = ScenEdit_GetUnit({side='someside',name='somename'}) u.group = 'my new or existing groupname'; Doing a bunch with similar names 1-6: local u; for i=1,6 do u = ScenEdit_GetUnit({side='someside',name='somename #' .. i}) u.group = 'my new or existing groupname'; end Note: If the unit type is an aircraft, remember the models & loadouts need to be the same.
|
|
|
|