Redeye_87th 0 Posted October 30, 2003 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 Share this post Link to post Share on other sites
Acecombat 0 Posted October 30, 2003 How about adding a FARP in the mission and then landing there .. Share this post Link to post Share on other sites
Redeye_87th 0 Posted October 30, 2003 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
bn880 5 Posted October 30, 2003 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. Share this post Link to post Share on other sites
bonko the sane 2 Posted October 31, 2003 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
bn880 5 Posted October 31, 2003 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
@cero 0 Posted November 2, 2003 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
ralphwiggum 6 Posted November 2, 2003 moving to user missions Share this post Link to post Share on other sites
Redeye_87th 0 Posted November 3, 2003 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
BraTTy 0 Posted November 5, 2003 Any reason why your using camcreate rather than createvehicle? Share this post Link to post Share on other sites
killswitch 19 Posted November 5, 2003 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". 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