OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Killzone on 02 Mar 2007, 17:43:46

Title: Help with rearming
Post by: Killzone on 02 Mar 2007, 17:43:46
Hi,

Can someone help with this:

I am fying the AV8B  and I am dropping bombs onto a city and then I am out of bombs. How can I rearm while in the air so that I can just keep bombing

I know the WeaponClassName is: 'BombLauncher' and the bombs are named: 'Bo_GBU12_LGB' I just get confused on how to write it into a script or even a trigger.

Thanks in advance.
Title: Re: Help with rearming
Post by: Cheetah on 03 Mar 2007, 10:25:57
Put down a soldier and a harrier. Name the harrier: plane

Then put down a trigger. Fill in the boxes like this:

Activation: Radio Juliet, Repeatly
Type: switch
Name: bomb_refill
Text: Refill
Condition: this
On Activation:
Code: [Select]
plane addMagazine "Bo_GBU12_LGB"; plane addMagazine "Bo_GBU12_LGB"; plane addMagazine "Bo_GBU12_LGB";

With this you should be able to use the radio (press 0-0-0) to refill, you can even do it multiple times because you checked "repeatly". This is not tested though, sorry that I haven't provided a working example, but I don't have an ArmA to play with (patching).
Title: Re: Help with rearming
Post by: FreeBird on 03 Mar 2007, 22:07:30
Just put:

Code: [Select]
this addEventHandler ["fired",{(_this select 0) setvehicleammo 1}]
in your jets init and bomb Sahrani to **** >:D