Thx again. Got some stuff working but not all I like to. I'm no prorgrammer or something like that just try to copy-paste and trial-error stuff.
local u1, u2, u3, u4;
local grpName = 'TG 10.1'
u1 = ScenEdit_AddUnit({type = 'Ship', name = 'RDAM', dbid = 825, side = 'Blue', Latitude="N9.30.00",Longitude="E109.30.00", heading=090, speed=12});
u1.group = grpName;
u2 = ScenEdit_AddUnit({type = 'Ship', name = 'TRMP', dbid = 891, side = 'Blue', Latitude="N9.31.00",Longitude="E109.31.00", heading=090, speed=12});
u2.group = grpName;
u3 = ScenEdit_AddUnit({type = 'Ship', name = 'ZLND', dbid = 2496, side = 'Blue', Latitude="N9.30.00",Longitude="E109.29.00", heading=090, speed=12});
u3.group = grpName;
u4 = ScenEdit_AddUnit({type = 'Ship', name = 'VSPK', dbid = 2522, side = 'Blue', Latitude="N9.29.00",Longitude="E109.31.00", heading=090, speed=12});
u4.group = grpName;
u2.formation = {type='fixed', bearing=040, distance=4, sprint='false'}
u3.formation = {type='fixed', bearing=270, distance=2, sprint='false'}
u4.formation = {type='fixed', bearing=105, distance=2, sprint='false'}
Don't understnad how to use the group wrapper and change the lead unit.
If you you something stupid, let me know. I can handle that as an ex navy chief

with regards