++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ Units rearm - with dialog - calling with radio or with action menue ++++++++++++++++++++++++++++
+++ Units of player and ai-groups go searching for new muniton!++++++ +++++++++++++++++++++++++++++++++
+++ Idea and realisation by SKY ++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

INSTALLATION:

1. Set trigger in editor
AXIS: free - if the triggered units were killed your units could get munition from them!
ACTIVATION: Anybody
trigger once
COUNTDOWN: 2-2-2
ON ACTIVATION: AllMen = ThisList

2. folder "rearm_units"
copy and paste it into your mission folder

3. "Init.sqs" + "Description.ext"
copy and paste them into your mission folder or paste the content of "Init.sqs" and "Description.ext" into your files.
(If you only use the rearmKI script then you dont need the description file!)

4. Do settings in "Init.sqs"

ready!

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

COMMENT:
Only "rearmunits": Script and player have to work together if the script should work effectiv!
The player should look around were to find the right munition for a unit before calling the script.
The script will search for the right munition but you can make searching time shorter if the unit is near to the 
needed munition!
If a unit had "pipebombs", "mines" or "mortar" and you whant it to rearm that munition: The unit has to have one of it left 
in its inventory. If it dosnt, the script can not scan the kind of munition and you have to order the unit to take 
one magazine with radio. Then you can call the script and it will work well. Otherwise the empty places in inventory will be 
filled with "handgrenades" or something else but not with "pipebombs", "mines" or "mortar" as you wanted!
So it is better to rearm units as soon as possible!
You can abort the rearming by calling unit(s) back to formation. The script will end after about 90 seconds.
If a unit couldt rearm during 90 seconds the script will end too.

SOMETHING SPEZIAL:
Units with Launcher take handgrenades if they cant find the right munition or not enough munition.
If they find the right munition later, they add the handgrenades to inventory of target and take the right munition!

In script "startscan.sqs" you can set the conditions to start the scan for AI-groups. (Only for "rearmKI")

Because the "rearm" order does not work well on several munition types and because it is not possible to get the 
munition cargo of ammoboxes and vehicles - I had to cheat. For example a "MG-Gunner" could rearm at a "ReammoBoxWest" 
as often as you want even if the box is empty! That also means the "MG-Gunner" could rearm ONLY at a "ReammoBoxWest" 
even if "M60" munition was added to the cargo of another type of ammobox!

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

DISCLAIMER
If you have problems in any way with this scripts, do not make me or anyone else responsible!
If you get any damage on your computer or get troubles with 'Operation Flashpoint', do not make me or anyone else responsible for it!
!!USE AT YOUR OWN RISK!!
SKY-Mapper@gmx-topmail.de