OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Raven on 20 Aug 2002, 18:55:48

Title: Use Of Weapons
Post by: Raven on 20 Aug 2002, 18:55:48
Hi Guys

Is it possible to get an aircraft to use a specfic weapon, I'm thing of the ITA Tornado and the JP223, I want to use them to carpet bomb an area. ???
Title: Re:Use Of Weapons
Post by: T.S.C.Plage on 20 Aug 2002, 19:35:55
Your question is not concrete enuff!

You maybe mean to put the JP223 on an A-10.
Not possible...you need an addon or to rewrite the .cfg (I'm not sure about the last?).

Or you mean that the Tornado is only using the JP223 (maybe if you tell it to).
Possible...

First  way:

Remove all weapons and add the JP223 again.
The Tornado can only use this weapon because he has no other!

removeallweapons this; this addweapon "XXX"; this addmagazine "XXX";  this addmagazine "XXX"; -> one weapon two mags here

Second way:

Makes it "choose" and fire the named weapon.
 
Tornado Action ["weapon","XXX"]  ->  selects the weapon.

Tornado fire ["XXX","XXX"]  ->  fire weapon (two times here!)

You've to find the specific name for the weapon and the ammo you want to use (here "XXX").

Complecated enuff!?!

But maybe you ment something completely diffrent?  ;D
Title: Re:Use Of Weapons
Post by: Raven on 21 Aug 2002, 20:46:30
Thanks for the help, both fo your suggestions worked  ;D.