Code: Select all
local units = ScenEdit_SelectedUnits( )
local ip = ScenEdit_GetReferencePoint( { side="GR", name="G_E"} )
local rn=0
local latlon=0
math.randomseed(os.time())
for d,unit in pairs(units.units) do
for i=1,12,1 do
rn = math.random(0,269)/1000
print(rn)
latlon = World_GetPointFromBearing( { latitude = ip.latitude, longitude = ip.longitude,
distance = rn, bearing = math.random(0,359) } )
print(latlon.latitude)
ScenEdit_AttackContact( unit.guid, 'BOL', { mode='1', mount=3433, weapon=3136, qty=1,latitude=latlon.latitude,longitude=latlon.longitude } )
end
endselect the 6 m270s and run the script . Also a notice : Why are we not able to launch artillery shells and unguided rockets at a location without a target? My opinion is that this is a major limitation and not how real life artillery works .