ARTIFICIAL INTELLIGENCE LOOTS AND SEARCHES FOR AMMO

Hey, have you ever seen AIs in your mission or campaign stop shooting for no reason? Just standing still and no longer fighting? This usually happens because AI runs out of ammo very quickly but never tries to ensure their survival. What this script does is very simple: it makes all AI-controlled soldiers search for ammo from nearby corpses when they run out, allowing them to continue fighting. Their search is smart and selective.

- 🔍 AMMO SEARCH:
*When soldiers run out of ammo, the script will activate individually
*They will scan the terrain and visually search for nearby corpses
*If none are in sight, they will begin searching the surroundings
*Once a corpse is found, they will carefully approach it
*The corpse will be marked so no other soldier attempts to loot the same one
*If in a group, they will ask their commander for permission. The commander will either share ammo or allow the search. - 🧺 Looting System
*Once near a corpse, the soldier will analyze its items
*They will take anything useful: bandages, grenades, etc.
*If lacking a helmet, vest, or backpack, they will take them from the corpse
*If the corpse has a different weapon, the soldier will store their weapon and switch
*If the corpse has compatible ammo, only useful mags will be taken
*If the corpse has a rocket launcher, it will also be looted
*After looting, the soldier will immediately return to combat
*If in a group, the unit will cover them as they rejoinIMPORTANTThis mod works with all weapons and soldier types, but they will not take enemy uniforms. Unarmed units will not search to avoid affecting campaign or ambient units.
Final NotesThis script does not affect performance at all, so don’t worry.
Soon I will release the mod that allows AI units to say goodbye to their friends by putting them in body bags (or maybe it’s already out when you read this). Other scripts include AI calling for reinforcements when needed, an RPG system for AI, terrain recognition, barricade construction, rescue and healing of teammates, and much more. All of this is already complete but will be released in parts. My goal is to revive ARMA 3’s best mode, OPEX, by including all these mechanics.
If you’d like to support my work or just enjoyed it, you can support me here. Have a wonderful day!
[buymeacoffee.com]SHARING IS CARING!
Revisions:
Old revisions of this mod are available below. Click the link to download.