Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Bomb drop script  (Read 1647 times)

0 Members and 1 Guest are viewing this topic.

Offline Camious

  • Members
  • *
Bomb drop script
« on: 25 Sep 2008, 00:58:45 »
Mando if you dont mind as you do great work and seem to be best to ask. How do i get a plane to drop more than one bomb on a invisable target as they allways drop one can you tell me what i need to type please as in your own they drop two. :)

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Bomb drop script
« Reply #1 on: 25 Sep 2008, 09:18:45 »
Do you mean using mando bombs? If so, they drop a minimum of two.

Offline Camious

  • Members
  • *
Re: Bomb drop script
« Reply #2 on: 26 Sep 2008, 21:31:59 »
I use your script which is great but i am trying to get ai plane to drop them in mission i create with any plane i use

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Bomb drop script
« Reply #3 on: 26 Sep 2008, 22:58:39 »
Well, if you know when the plane should start to drop bombs, you may use the action "UseWeapon" to force the AI plane to drop a bomb or more.

EDIT:
if your AI really drops at least a single bomb, you may use the FIRED event handler to catch it and drop a second one using the UseWeapon (but only when number of bombs left ("ammo") is odd.
« Last Edit: 26 Sep 2008, 23:08:10 by Mandoble »