Home   Help Search Login Register  

Author Topic: Two questions on airstrikes.  (Read 670 times)

0 Members and 1 Guest are viewing this topic.

Schoeler

  • Guest
Two questions on airstrikes.
« on: 07 Nov 2002, 00:38:02 »
I have two questions in areas where I need help making an airstrike script:

1.  How can I use createVehicle to spawn DKM's OV-10 Bronco and G8's Tornados.  I can't seem to de-PBO the files to get the editor class names?

2.  How can I get the planes to bomb/strafe an invisible target like a user made marker, empty-h object, or game logic, and if I can't what is a good alternative?

On number two I've been experimenting with using setPos to teleport an invincible (looping setDammage script) unarmed soldier to the point I want targeted and then ordering the planes to attack him using doFire.  The results have been intermittent with the planes attacking him once in a while and for the most part, missing very badly with the ordinance when they do.

Any helpful suggestions would be greatly appreciated and thanks in advance.

Schoeler

  • Guest
Re:Two questions on airstrikes.
« Reply #1 on: 13 Nov 2002, 19:34:38 »
I still need help on the targeting aspect of this question.  I can get the planes to fly over the target and even act as if they are going to strike, but they just won't do it!   >:(

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Two questions on airstrikes.
« Reply #2 on: 13 Nov 2002, 20:59:57 »
Hmmm, I looked at this earlier but I didn't have any simple solutions, alas. For the bombing run you'll probably need a proper script, or some magic I don't know about ( ::) -> Resitance?)  :-\ Try the Scripts section.

You CAN however force the planes to bomb people by using the fire command (syntax: unitName fire "NameOfWeapon"), however you would have to know the names of the bomb launchers on those addon planes... (on the A10 it's "LaserGuidedBombLauncher")

Oh, and pertaining to 'em addons, the only suggestion I can give is for you to send the guy an e-mail asking for them. Unless someone here by utter chance happens to know them.  :P

Right. If nothing else, you can look at the airstrike scripts in the Snippets section, although most of 'em are rather outdated/not meeting your requirements. Ah well.  :)
"When 900 years YOU reach, look as good you will not!"

CareyBear

  • Guest
Re:Two questions on airstrikes.
« Reply #3 on: 15 Nov 2002, 14:57:24 »
doFire should make the planes attack any target u give them with doTarget.

If u use the 'fire' command, they *will* fire, but not necessarily when they have a good line - they fire when u give the command, even if they're headin in the wrong direction.

Another option is to use something like the CCIP script which is designed for unguided bombs. Look in the Ed Depot. A good little script & almost exactly what u want.

Weapons for OV bronco are in readme in addon zip. They are

DKMM_OV10_AIM9L_L
DKMM_OV10_4x7_6
DKMM_OV10_Mk82_4
DKMM_OV10_MK82_7
DKMM_OV10_MK81_14
DKMM_OV10_MK81_10
DKMM_OV10_Hydra_114
DKMM_OV10_Hydra_38
DKMM_OV10_20mm

I don't have the tornado, but usually the weapon names are in the readmes.

Another ting u can do (if u wanna do it ur way) - it's harder for planes to target a soldier, since he's hard to *see*. Use a vehicle, such as an M2 Machinegun, instead. Pref of the opposite side to the bomber, they're more inclined to bomb it, and they find it easier to hit somethin that shows up on their radar.

Might even be able to put the M2 five meters underground. That's one trick I've used before. Dunno how the targetin goes then tho...

Cheers,

Careybear