Author: Das Attorney
Author Website:

Requirements: Community Base Addons, Arma 2

Version: 2.1

Short description: All Round Defence (ARD) is a formation typically used by the British Army (and other fighting forces) after a firefight to 're-org' the squad, making sure everyone has ammunition and tending any wounds.

Date: 2011-02-13 15:20

Comments: (1)


All Round Defence

Das Attorney

All Round Defence (ARD) is a formation typically used by the British Army (and other fighting forces) after a firefight to 're-org' the squad, making sure everyone has ammunition and tending any wounds. As per it's name, it can also be used defensively, providing 360 degree coverage. There are a number of features included to make commanding AI to perform specific tasks easier. This frees up the players time and they can focus on other matters at hand. Up to 20 units can be ordered into ARD.

Default Keys - can be changed in the user-config:
F1 = Open ARD Menu
1 = Quick ARD

When activated, the scripts will count the amount of AI units eligible and order them into a circle around the players current position, with eqidistant spacing between them. The radius of the circle is determined by pre-sets from the ARD Menu (10 meters up to 50 meters), or the player can point his weapon at the terrain and press a user-defined hotkey to order the men into anything up to a 100 meter radius (does not need to open the menu).
You can make your squad form back up by pressing the 'Form On Me' button in the ARD menu. Also, if you move outside of the radius, your men will automatically form on you. If you want to move out of the radius and keep your squad in ARD, then press the 'Hold' button in the ARD menu. Your squad can also be set as prone or crouched (default) by pressing the respective 'Prone' and 'Crouch' buttons in the ARD menu.

You must be stationary to open the ARD menu or use the hot-key. If you are in a vehicle, it must be stationary. If you are piloting a chopper, you can issue the order if it is hovering (auto-hover helps).

If your units are in a vehicle, they will dismount (even the commander and driver). The player will not automatically dismount though. Units manning static weapons or assigned as the gunner in a vehicle will scan the horizon for threats and stay embarked. Medics will not form up into ARD (as they are needed for other tasks instead of perimeter defence).

If your squad is in a chopper, they will only dismount if you are less than 2 meters off the ground, or if you are over 50 meters from the ground they will parachute in. Anything in between and they refuse, for fear of dying/injury. If you issued the order to form up from a chopper hovering over 50 meters up, your men will go into 'Hold' mode and will wait for you to manually order them back into formation (with either the default BIS commands or 'Form On Me' from the ARD menu).

Due to improvements with AI pathfinding in recent betas, the script can now be activated when in "Combat"/"Danger" mode.

When your squad is in ARD, CSW's can be deployed accurately (4 meters in front of player and facing in the players direction) by clicking 'CSW Deploy' and also any CSW within 50 meters can be retrieved by clicking once on the menu - 'CSW Breakdown'. If you have a squad medic, you can order them to heal all wounded units - click on 'Medic'. A maximum of 8 units can be healed at any one time. The Medic will not perform this action if the squad is in combat mode.

If a unit is the gunner in a vehicle and the vehicle has smoke launchers, they will deploy smoke if the vehicle is damaged or if one of your squad is killed (giving you time to respond to threats). This feature can be disabled from the user-config if not wanted.

Your men will also throw a smoke grenade if they are wounded. They must have at least one smoke grenade in their inventory for this to work. The men will not throw a smoke grenade if it is night. The probability of throwing a smoke grenade can be defined in the user-config. This feature can also be disabled from the user-config if desired.

A modified version Demonized's brilliant 'AI Shoot Flare' scripts are included in ARD. If it is night, any AI unit under your control with an underbarrel grenade launcher will fire a flare into the air to illuminate your enemies.

ARD also includes the excellent ECHO artillery scripts. If there are artillery pieces available, order your men into them and then press 'Artillery Start'. They will leave the player group and wait for target information to be passed to them. Any units left in your group become spotters and will automatically relay target information to the artillery squad. Fire orders will be issued automatically against any viable targets. Your AI men spot up to 600 meters. The player spotting distance is user definable in the user-config (Default is 1500 meters). Other options in the user-config can be changed such as the time between fire missions, and dispersion of rounds.

When you want to stop the artillery firing autonomously, press the "Artillery Stop" button in the ARD menu. They will then finish any fire missions they are on, then re-join your group. This has been coded so that it is compatible with R3F Artillery (if installed). You cannot use both at once, but there should be no clashes between them. R3F may put a warning about Arty modules on the screen. You can safely ignore it. A maximum of three units can be used for the Artillery Support.

Addon version:
As we always recommend use modfolders to seperate the custom content from the official game content to prevent problems.
For different ways to set up your modfolders and use them please visit our FAQ.
Place the userconfig file in your main Arma 2 folder. If you have a userconfig file already, then place the contents of this one into yours.

Script version:
Place the following files in your mission file:
ARD folder
Demonized folder
ECHO folder

To change the hotkey, edit the ARD\onKeyPress.sqf file. Instructions are in the file.

Included pbo files:


Here's a couple of crappy videos (30 secs free fraps) showing the script working:

ASR Rearming will over-ride ARD if loaded at the same time. Deactivate ASR with the comms menu to enable ARD.

ACE compatibility not thoroughly tested - does not appear to clash, but the ARD scripts do things the vanilla way and do not factor in things like ACE CSW ammo. If there is demand, I may look into full compatibility.

Demonized's AI Shoot Flares will replace any BLUFOR weapons with GL's with the M16A2GL. It appears OA weapons do not work with the "fire" command, and need to use "useWeapon" to fire instead (which has it's own set of problems). Will be looked into. Demonized's solution is the best one at this time due to the aforementioned limitation. OPFOR forces use the 30Rnd_545x39_AK which is quite credible IMO.

If a gunner is in a vehicle with smoke launchers and there are other units in the driver or commander slot (could be player or medic for example), he will not fire smokes. Not sure why this happens, maybe something to do with rank.

Teamswitching can have unexpected results...

Some of the BAF static weapons cause a crash when you try to disassemble them. It is a known issue on DevHeaven not specific to ARD.

Not tested on MP - If someone can give me feedback on what works and what doesn't, I can make it compatible, for things like Warfare and other player led AI squad based MP stuff.

Other mods like FV432 mortar variant not supported yet. Will be looked into.

Future plans:
- I'd like as much feedback as possible - I've done an insane amount of testing to make sure it works, but if there's any bugs you find then let me know. Likewise, if you have any ideas for improvement, drop me a line and I'll check into if it's feasible.
- Script version to get better documentation.
- I'd like to work on the Flare Scripts to support OA weapons. (Will check in with Demonized there - got a couple of ideas how to make it work)
- At the moment, the ECHO artillery does not tell you what they are targetting. Evil Echo has been very supportive in helping me but I can't get the sidechat to work at this time.
- I'd like to add a 're-equip' function, but that's going to be a long way off yet.
- I did make a routine for engineers to defuse mines near the group but couldn't get it to work. Will do some more research.
- The ARD menu could do with a makeover. Unfortunately, my knowledge of dialogs is very limited at this time.
- If you would like your native language supported, PM me a translation of the stringtable and I will include it in the next release.

For non-profit users: Do whatever you like with this. Feel free to modify or rip code out of it for your missions and mods, As long as Das Attorney is credited as the original author. If you want to use any of this for commercial purposes, email me on these forums or

Credits & Thanks:
Evil Echo for updating his Artillery Scripts (practically on request) and letting me use his work:
Demonized for the included AI Shoot Flares scripts:
Sickboy for showing me how to create arrays.
Myke for his post detailing how to create arrays containing only certain types of units.
TPW for his clever 'Sun Angle' script.
Sirex1 for helping with doMove issues.
Everyone who's posted ideas and feedback in this thread. Cheers all.
The guys over at VCB and UKF for keeping it real.

* Fixes bug where ARD menu would disappear if activated in a building.
* Increased Artillery Spot Distance for player controlled UAV's

* Added support for squad vehicles.
* Squad deploys faster into ARD than in previous versions.
* Issuing the orders in quick succession no longer a massive fail.
* squad sizes of up to 20 units now supported.
* Squad spacings automatically adjusted to take into account the number of units.
* New hot-key added to order squad into ARD without the menu.
* Vehicle gunners will now scan horizon and remain inside vehicle when ARD is ordered.
* Vehicle gunners deploy smoke if vehicle is damaged or any of squad killed.
* Most of the 'skeetdisk' objects not needed now - Only one for the player and one for each of the gunners.
* Squad members will throw a smoke grenade if injured.
* If night time, units with grenade launchers fire flares to illuminate enemy forces. (Demonized).
* ECHO artillery added.
* Added support for different languages.
* Precompiled most of the code for better performance.
* Fixed numerous bugs.
* Units in player issued "STOP" mode now respond to ARD.

* PBO version.
* Added menu allowing different radii, return to formation and crouch/prone buttons.
* User defined hotkey for both script and PBO versions.
* Hand Animations added when issuing orders.
* Eliminated need for spawned trigger.
* Only leader can issue orders.
* If you go out of the formation boundry, your men will automatically regroup.
* Script version tidied up for easier use.

Forum topic:
- BI forums

- Community Base Addons
- Arma 2

Enable javascript to be able to download from Armaholic please!

Tags: No tags