[1304.1] Possible issue with M30A1 & PrSM
Posted: Mon Jan 23, 2023 1:38 pm
Hello , i was making a script to BOL artillery at a grid square (similar to what you have IRL ) and i noticed that the enemy units did not take damage at all even if they are in blast radius . Tested with M270 with m30a1 and prsm misssiles. 155mm shells killed the targets so i guess the problem is with the missiles . Here is the script :
select 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 .
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 .