Home   Help Search Login Register  

Author Topic: Help with rearming  (Read 1703 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Help with rearming
« 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.
"Everyone dies so deal with it and move on"

                                                      ME

Offline Cheetah

  • Former Staff
  • ****
Re: Help with rearming
« Reply #1 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).
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline FreeBird

  • Members
  • *
Re: Help with rearming
« Reply #2 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
Call [This,Birth,School,Work,Death]execVM "Storyofmylife.sqf"
(_this select 1)ObjStatus "DONE";(_this select 2)ObjStatus "DONE";(_this select 3)ObjStatus "ACTIVE";(_this select 4)ObjStatus "HIDDEN";
if not((_this select 0) IsKindOf "Human")ExitWith{PlayMusic"Goodbye Cruel World"}