Veteran66 Posted December 26, 2020 Share Posted December 26, 2020 (edited) i find this script from Grimes: local pos = Unit.getByName('myUnit'):getPosition().p pos.x = pos.x + 20 pos.y = pos.y + 3 pos.z = pos.z + 20 trigger.action.explosion(pos, 200) Link: but i get a error What is wrong? Edited December 26, 2020 by Veteran66 German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/ Link to comment Share on other sites More sharing options...
toutenglisse Posted December 26, 2020 Share Posted December 26, 2020 Strange ! the code is DCS scripting (no MIST function) and does work when isolated. Scripted-expl-test.miz Link to comment Share on other sites More sharing options...
Sedlo Posted December 26, 2020 Share Posted December 26, 2020 @Veteran66, try this : local ExplodeThis = Unit.getByName('myUnit'):getPoint() trigger.action.explosion(ExplodeThis, 200) Just re-read your post.... You can adjust the explosion power to adjust amount of damage... What exactly are you trying to go for? The error you encounter seems to be you have not put the correct unitname into the script. My Youtube Channel MY DCS MISSIONS Link to comment Share on other sites More sharing options...
Veteran66 Posted December 27, 2020 Author Share Posted December 27, 2020 (edited) thy for your answers. I make a Mission "attack airfield" after this attack there will be a second attack Mission. so i need some destroy Static Airplanes around the Airfield. with the Actions "Unit Explosion" all Static Plane have the same damage (look not realistic) so my idea a explosion on the side of the Object. with the script i can out different coordinades so i get (i hope so) different damages on my static Planes. but this script work not for Static Objeckts ----------------------------------------- local pos = Unit.getByName('myUnit'):getPosition().p pos.x = pos.x + 20 pos.y = pos.y + 3 pos.z = pos.z + 20 trigger.action.explosion(pos, 200) ------------------------------------------- i try "StaticObject.getByName" too (sorry for my bad english) First Mission: https://www.digitalcombatsimulator.com/en/files/1969649/ here a Pictures from the first attack: Edited December 27, 2020 by Veteran66 German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/ Link to comment Share on other sites More sharing options...
Veteran66 Posted December 27, 2020 Author Share Posted December 27, 2020 i need wreck like this: German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/ Link to comment Share on other sites More sharing options...
Sedlo Posted December 27, 2020 Share Posted December 27, 2020 OK, I guess in order to get that you can add your statics to the map and make some individual zones near them, like this: Then add explosions in each zone of different intensities. And then you might end up with something like this: My Youtube Channel MY DCS MISSIONS Link to comment Share on other sites More sharing options...
Veteran66 Posted December 27, 2020 Author Share Posted December 27, 2020 yes i know, scripts more comfortable, i didn't think a script make so much work German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/ Link to comment Share on other sites More sharing options...
Sedlo Posted December 27, 2020 Share Posted December 27, 2020 There still may be a way to do what you want by script, but it’s beyond me. Sorry. My Youtube Channel MY DCS MISSIONS Link to comment Share on other sites More sharing options...
Recommended Posts