Page 1 of 1

AddExplosion

Posted: Mon Feb 15, 2021 7:17 am
by Parel803
Goodmorning, Just a curiosity Question.
I'm trying some stuff with AddExplosion, got damage and flooding on my surface unit.
From there I tried some EMP warheads but saw no differece on my unit. Is that logical and I'm I thinking the wrong way?
with regards Gert-Jan

used:
local unit = ScenEdit_GetUnit({guid='50PVO4-TRMP-U2T2SG'})
ScenEdit_AddExplosion({warheadid=1124, lat=unit.latitude, lon=unit.longitude, altitude=unit.altitude})

RE: AddExplosion

Posted: Mon Feb 15, 2021 4:49 pm
by KnightHawk75
local unit = ScenEdit_GetUnit({guid='50PVO4-TRMP-U2T2SG'})
ScenEdit_AddExplosion({warheadid=1124, lat=unit.latitude, lon=unit.longitude, altitude=(unit.altitude+18.2)})

Using altitude (in this case I think 0) for it causes it to do a Splash Explosion, though that doesn't get recorded for some reason anywhere in the logs which may be intentional or might be an oversight. Use the above to make sure the EMP goes off at least above the water line, I used about 60ft in above example and it seems to work.






RE: AddExplosion

Posted: Mon Feb 15, 2021 5:01 pm
by Parel803
sound easy but I did not think of that
thanks for your time and paticience

regards GJ

RE: AddExplosion

Posted: Mon Feb 15, 2021 5:13 pm
by Parel803
Not important but love this as a Crow

with regards GJ

Image