Jump to content

Recommended Posts

Posted (edited)

Hello,

I'd like to know if its possible to make a script or trigger that will spawn bombs under a certain plane. I'm making this mustang intercept mission where player will have to takeoff and intercept "bombers" (An-26Bs) before they reach a trigger zone. When they do I want them to start bombing the zone. So far I only discovered that I can make a continuous action trigger with condition "unit bomber inside zone x" with action "explosion in zone x" but that's not very good because the explosion is still in one place - in the center of the trigger zone - this means I'd have to make a lot of small trigger zones in the path of each bomber to make it look as a carpet bombing. It would be much easier if there was a way to spawn bombs under the plane once it's in the one big trigger zone. Is it possible ?

 

edit : there is a "DO SCRIPT" action in the trigger action list - maybe it would be possible to write here a script for the bomber that would spawn bombs under it ?

 

edit2 : I tried creating a workaround - creating a moving zone, assigning it to the bomber unit and making the explosions in the center of this moving zone. The trouble is that the moving zone works only as a condition - the coordinates of the moving zone defined in the mission editor don't actually change - this means that the explosions are still static in the place where I put this moving zone in the editor.

 

So basically what would solve my problem is either creating this bomb droping script or making a script that would move the moving zone coordinates under the bomber. Third option is, as I mentioned before, to create dozens of small zones in the path of the bomber and make explosions in these but I don't really want to do this (too much work :)) - there must be a better solution. Any ideas are welcome.

Edited by lanmancz

[sIGPIC][/sIGPIC]

 

Gigabyte Aorus Z390 Elite, Intel i9 9900K, Fractal Design Kelvin S36, Zotac GTX 1070 8GB AMP Extreme, 32GB DDR4 HyperX CL15 Predator Series @ 3000 MHz, Kingston SSD 240GB (OS), Samsung 970 EVO 1TB M.2 NVMe (sim), Fractal Design Define R5 Black Window, EVGA SuperNOVA 750 G2, Win 10 Home x64, Thrustmaster Warthog HOTAS, Saitek Pro Flight Rudder Pedals, Thrustmaster MFD Cougar Pack, TrackIR (DelanClip), 3x 27" BenQ EW2740L, Oculus Rift S

 

Posted (edited)
Hello,

I'd like to know if its possible to make a script or trigger that will spawn bombs under a certain plane. I'm making this mustang intercept mission where player will have to takeoff and intercept "bombers" (An-26Bs) before they reach a trigger zone. When they do I want them to start bombing the zone. So far I only discovered that I can make a continuous action trigger with condition "unit bomber inside zone x" with action "explosion in zone x" but that's not very good because the explosion is still in one place - in the center of the trigger zone - this means I'd have to make a lot of small trigger zones in the path of each bomber to make it look as a carpet bombing. It would be much easier if there was a way to spawn bombs under the plane once it's in the one big trigger zone. Is it possible ?

 

edit : there is a "DO SCRIPT" action in the trigger action list - maybe it would be possible to write here a script for the bomber that would spawn bombs under it ?

 

 

Please see the simulator scripting engine guide http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine_(DCS:_World_1.2.1)

 

There is no way to spawn bombs.

 

You can, however, create explosions where ever you want them in 3D space, see this:

 

edit2 : I tried creating a workaround - creating a moving zone, assigning it to the bomber unit and making the explosions in the center of this moving zone. The trouble is that the moving zone works only as a condition - the coordinates of the moving zone defined in the mission editor don't actually change - this means that the explosions are still static in the place where I put this moving zone in the editor.

 

So basically what would solve my problem is either creating this bomb droping script or making a script that would move the moving zone coordinates under the bomber. Third option is, as I mentioned before, to create dozens of small zones in the path of the bomber and make explosions in these but I don't really want to do this (too much work :)) - there must be a better solution. Any ideas are welcome.

 

You could use the scripting engine to generate explosions, true. See the Mist thread where I give an example.

 

There is another possibility that MIGHT work. You could get the CLSID of a full B-52 bomb bay by extracting a .miz file that contains a B-52 with a full bomb bay. Place that CLSID into the loadout slot of like, a Tu-95, from a different extracted .miz file. Rezip it back up, and now you have a bomb-carrying Tu-95. The Tu-95 is propellor driven, and you could just set its waypoint speeds to be fairly slow. However, in game, the Tu-95 is not allowed to carry bombs for some reason :huh:

 

Anyway, now you would have a bomb-carrying Tu-95, you can try to force it onto a bombing task with Controller.pushTask (see the scripting engine guide, part 2, where it tells about Controller objects and the AI task types).

 

There is a possibility it could crash the game, there is a possibility it just might do nothing, but there is also a possibility it might work. You can do some pretty unusual stuff with Controller objects, like force AI aircraft to shoot down friendly aircraft.

Edited by Speed

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

Posted

Cool, thanks for the tip - I'll check it out.

[sIGPIC][/sIGPIC]

 

Gigabyte Aorus Z390 Elite, Intel i9 9900K, Fractal Design Kelvin S36, Zotac GTX 1070 8GB AMP Extreme, 32GB DDR4 HyperX CL15 Predator Series @ 3000 MHz, Kingston SSD 240GB (OS), Samsung 970 EVO 1TB M.2 NVMe (sim), Fractal Design Define R5 Black Window, EVGA SuperNOVA 750 G2, Win 10 Home x64, Thrustmaster Warthog HOTAS, Saitek Pro Flight Rudder Pedals, Thrustmaster MFD Cougar Pack, TrackIR (DelanClip), 3x 27" BenQ EW2740L, Oculus Rift S

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...