Jump to content

Recommended Posts

Hi guys,

can you help how to drop bomb from planes for AI.

I need it to my scenario that they're bombing city.

 

 

Thanks.

Share this post


Link to post
Share on other sites

 

best way is use google and type arma 3 planes drop bomb ai (you have answer here!)

Share this post


Link to post
Share on other sites

This kind of behavior can be hard to do if you try to reach a real bombing (adding multiple enemy targets, or laserTarget in ww2?...)

As, nobody will scout for falling bombs (objects as projectiles with cinematic), I suggest you to simulate that:

 

Place a marker above your town, with area, then, as example for an aircraft named bombing1 :

 

On condition:

bombing1 inArea thisTrigger

 

On act:

bombing1 spawn {
  params ["_plane"];
  _salve = 10 + ceil random 20;
  _bombing = 24;
  _vel = velocity _plane;
  _h = getPosATL _plane select 2;
  _dir = getDir _plane;
  _pos = getPos _plane;
  _bombingFall = 4;
  sleep _bombingFall;
  _timer = diag_tickTime;
  for "_y" from 1 to _salve do {
    for "_x" from 1 to _bombing do {
      _posGround = _pos vectorAdd [((sqrt _h)* sin _dir) -20 + random 40,((sqrt _h) * cos _dir) -20 + random 40,0];
      _offset = _vel vectorMultiply (diag_tickTime - _timer);
      _upDatedPos = _posGround vectorAdd _offset;
      _upDatedPos set [2,0];
      _blast = createVehicle ["HelicopterExploBIG", _upDatedPos, [], 0, "NONE"];
      sleep random 0.2;
    };
    sleep random 2;
  };
};

 

You can play with delay, area, and all parameters, pushing maths with a true falling time...

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×