Home   Help Search Login Register  

Author Topic: How do I get troops to re-arm?  (Read 901 times)

0 Members and 1 Guest are viewing this topic.

Alcazar

  • Guest
How do I get troops to re-arm?
« on: 04 Dec 2003, 03:21:59 »
OK, I've finally figured out  how to have a 'No.2' soldier to carry extra ammo and act like an ammo source - which is fine if I'm the guy with the CarlGustav, or M60 or whatever - I can go up the No.2 and take more ammo as if he were an ammo crate, but I can't get the rest of the squad to play ball   >:(

I figured maybe there was some attribute I should be setting to get this to work, but I then tried to get the squad to rearm from a crate or truck.  If it's an ammo truck,I can order rearm, but I just get back 'ready' and nothing happens! If its a crate, I don't even get the chance to order rearm.  ???

Am I missing something, or does the game engine not cope with this sort of thing? :-\


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How do I get troops to re-arm?
« Reply #1 on: 04 Dec 2003, 11:16:09 »
During a mission if you want a loon to pick something up from an ammo crate you have to give him a specific order.      I can't remember if AI groups do this, but you can easily test it.  

For your rearming script you'll have to do the whole thing manually in the script:   check if the No1 is low on ammo, check if the No2 has ammo, get them to meet, do the animations, addmagazine to 1 and removemag 2 and then get them back into formation.  
Plenty of reviewed ArmA missions for you to play

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:How do I get troops to re-arm?
« Reply #2 on: 04 Dec 2003, 14:11:11 »
 :o freeze (doStop) one of the blokes, either the walking ammocrate or the Carl_G grunt.
Then tell the other one to "move (getpos d00d)" & then add the actual rearm stuff (like above).

In real combat, I recon the loader would be the guy w/ the fast feet  ::) or he would "worm" his way to the AT soldier, who sits in his trench or bush somewhere...

 :) a couple of repeated triggers could prolly do the job.




Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:How do I get troops to re-arm?
« Reply #3 on: 05 Dec 2003, 17:19:27 »
@ Alczar - you sound like you're the group leader, not trying to script AI to Rearm.  If that's the case, have you tried getting the No.2 to DROP the ammo for the No.1 to pick up?  This is most easily done through the gear page in your notepad - use the little drop arrows by each mag.  That'll drop the mag object on the floor, you should then be able to action the No.1 to pick it up in the same way as he wouuld from  body.

It's an area the engine ought to be improved in, particularly when it was so important in the Resistance campaign.  OIt would be nice to select several units and say 'redistribute ammo' and have them share common mags.

Your 'not rearming from crates' problem may be due to the different loadouts in different crates.  You may need to add specific mags to the crate like you do your No.2s.

Alcazar

  • Guest
Re:How do I get troops to re-arm?
« Reply #4 on: 06 Dec 2003, 08:15:22 »
Thanks for the replies guys!

To start with I'm just trying to get things to work in a mission as the group leader. Once I can do that, then I thought I'd have a go at a script - there's a MG crew script here on ofpec which I can use as a starting point - expect a LOT more questions when I get to that stage ;)

The ammo crate I'm using is loaded up with the CG rounds ok - I can grab them myself, but I can't order the group member to do so. I think this may be related to the fact that the group members don't moan about being low on ammo for secondary weapons.

What I'm trying to do is use the No.2 as an 'ammo source' for the CG/MG/etc, so the AI will take care of it automatically - I can recall hearing '#8 rearm at xyz' type of chatter during missions where I was just a group member, so I figure it should be possible. But I think that was for primary ammunition - normally on that kind of mission I tend to shadow the AT/LAW guy to provide covering fire and to pick up the AT/LAW if he gets hit, otherwise the squad loses the AT capability.

I need to do a bit more investigation - it may be the only answer is to use a script, but I'm fairly clueless at the moment, so I'll have a root round here at the faqs etc.