Sonobuoy under UAV
Posted: Sun Jan 17, 2021 10:15 am
Good afternoon,
Struggling with the changes of weapon, mounts, etc. Hope someone can help me.
I have a Campcopter initiated by LUA and wanna assign him to a ASW mission with an Active sonobouy. With previous learned bearing/distance from ZZ
I finally came up with changing the LoadoutID from another airborne unit.
local Brg1 = 100; local Dist1=35
local ZZUnit = ScenEdit_GetUnit({name='xxx', guid='50PVO4-xxx-U2T2SG'});
local pt = World_GetPointFromBearing( {LATITUDE=ZZUnit.latitude,LONGITUDE=ZZUnit.longitude,BEARING=Brg1, DISTANCE=Dist1} )
local Unit1 = ScenEdit_AddUnit({side='Blueland', Type='Aircraft', Name='Gull Three', Guid='50PVO4-Gull3-0HM5BECGABQF6', proficiency=2, dbid=3445, loadoutid= 22232, lat=pt.latitude,lon=pt.longitude, Heading=180, speed=25, altitude=50})
Now I wanna change the amount of Dicass to 2.
ScenEdit_SetLoadout({name='Gull Three', guid='50PVO4-Gull3-0HM5BECGABQF6', loadoutid=13531, wpn_dbid=2480, Remove=6})
If it is possible, what am I'm doing wrong?
with regards GJ
Struggling with the changes of weapon, mounts, etc. Hope someone can help me.
I have a Campcopter initiated by LUA and wanna assign him to a ASW mission with an Active sonobouy. With previous learned bearing/distance from ZZ
I finally came up with changing the LoadoutID from another airborne unit.
local Brg1 = 100; local Dist1=35
local ZZUnit = ScenEdit_GetUnit({name='xxx', guid='50PVO4-xxx-U2T2SG'});
local pt = World_GetPointFromBearing( {LATITUDE=ZZUnit.latitude,LONGITUDE=ZZUnit.longitude,BEARING=Brg1, DISTANCE=Dist1} )
local Unit1 = ScenEdit_AddUnit({side='Blueland', Type='Aircraft', Name='Gull Three', Guid='50PVO4-Gull3-0HM5BECGABQF6', proficiency=2, dbid=3445, loadoutid= 22232, lat=pt.latitude,lon=pt.longitude, Heading=180, speed=25, altitude=50})
Now I wanna change the amount of Dicass to 2.
ScenEdit_SetLoadout({name='Gull Three', guid='50PVO4-Gull3-0HM5BECGABQF6', loadoutid=13531, wpn_dbid=2480, Remove=6})
If it is possible, what am I'm doing wrong?
with regards GJ