Jump to content
Sign in to follow this  
Redeye_87th

Rearming ai choppers

Recommended Posts

Okay I've got a chalange!

I'm playing dynamic vietnam mission by Bagel. In this mission u can buy choppers (these are camcreated) and then fly around with them.

The chalange I face is how to get them to rearm. Once the chopper has used up all it's ammo it will fly to the nearest ammotruck and starts hovering over it but no ammo is transfered.

As far as I know heliname addmagazine "ammoname" doesn't work because the camecreated chopper doesn't have a name. The crew does have one.

Any ideas?

Redeye rock.gif

Share this post


Link to post
Share on other sites

If I fly the chopper no prob. But the AI is flying the bird and those bastards just start flying cirlces around the ammo.

Share this post


Link to post
Share on other sites

I get the same problem, I was thinking the flyinheight was the issue but I'm not sure. They just fly in circles at about 50m. rock.gif

Share this post


Link to post
Share on other sites

ermm...im a noob at scripting...so this is just a thought...cant u use bas_repairH? it repairs and rearms as far as i know, but u need to define a dammage level so the heli goes repair/rearm

Share this post


Link to post
Share on other sites

No I personally can't use bas_ anything, I have some 'no addon' missions where this happens. This could be an issue with OFPR... I'm not sure, no time to play.

Share this post


Link to post
Share on other sites

I'm not a scripter, but I know that, it may help you.

Any thing that gets camcreated should have a name, at list in triggers and waypoints, so it should be in scripts aswell, lets hoppe.

Quote[/b] ]mocoloco="Whatever gets camcreated"camcreate getpos wherever

In this example, "mocoloco" is the name, so all you have to do is find what names have been used for this camcreated choppers.

But, again, I'm not a scripter, so I may be wrong.

Good luck.

Share this post


Link to post
Share on other sites

Well I got it figured out.

The crew flying the choppers was named. So buy using the command: 'vehicle (units  groupname select 0)' you can identify the unknown vehicle.

Then I setup a trigger in which I first removed the ammo on the vehicle 'removeallweapons' then added all the magazines. Trigger is actived only by the vehicle specified above. Works like a charm. The only thing is that the chopper doesn't have to land to get rearmed but it's better then the supporttruck dance.

Redeye

Share this post


Link to post
Share on other sites

Any reason why your using camcreate rather than createvehicle?

Share this post


Link to post
Share on other sites

The inability for AI helos to rearm/repair/refuel hovering above a support truck is something that appeared with 1.91, if I remember it correctly.

I too was playing Bagel's "Tour of duty" and had ammo trucks at FARP:s out in the field.

They might pick up one or two mg/cannon shells while slowly passing over the ammo truck, but they "never" get fully loaded. I mentioned this in one of the old 1.90/1.91 beta threads, but it has either slipped by BIS eyes or was deemed less important.

Here's to BIS seeing this and having the time to take a look at it. Oh, while I'm at it, an "ammo" event would be very useful for these situations. I mean, we have "fuel" and "dammaged". wink_o.gif

Quote[/b] ]

No I personally can't use bas_ anything, I have some 'no addon' missions where this happens. This could be an issue with OFPR... I'm not sure, no time to play.

Fix for at least one of the bas addons by yours truly on page 28 of the Tonal Island thread. Some of the others need some work too, though...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×