Author: NinjaRider600
Author Website:

Requirements: Community Base addons A3

Version: 1.00

Short description: This is a lightweight script that could populate bases and observation posts without causing too much strain.

Date: 2018-08-04 16:36

Comments: (0)


NR6 Sites


As I have been working on expanding battlefield immersion in scenarios set up using HAL, I've wanted a lightweight script that could populate bases and observation posts without causing too much strain. So I made this small script that uses a very slightly modified CBA defense script similar to the one used in CBA's defense module. This script's goals are to add unpredictability in the way bases are set up and to speed up and facilitate the setup of such sites.

Although I also made a remake of the stock BI Sites module so that it works with any mod, I have found that such module put too much of a strain in most missions and didn't work well in large scale scenarios so I didn't publish it yet as I believe this is a better alternative.

Places a fully configurable site or patrol on the position it is called on. Troops can occupy buildings and garrison a position while also patrolling the designated area. Fully adapted to work with ZBE_Cache and HAL. In the case of HAL, the units spawned are NOT controlled as they serve as independent defense. The main difference added in this version of the CBA defense script is that it spawns units which are immediately moved to their garrison positions instead of ordering them to reach their positions. It behaves in that sense similarly to the BI Sites script.

Installation / Usage:
For usage instructions and information of how to use the NR6 Sites please refer to the included documentation and/or example mission.

Add all files inside mission directory.

Called using:
[position of site, radius of site, number of groups, chance for patrol,,minimum building size, side, array of available groups for guard to spawn (can be a config path or array), controlled HAL leaders] call NR6_Sites;

Ex: [(getPos this),100,4,0.2,1,west,[['rhsusf_army_ocp_teamleader', 'rhsusf_army_ocp_grenadier','rhsusf_army_ocp_autorifleman','rhsusf_army_ocp_rifleman'],['rhsusf_army_ocp_grenadier', 'rhsusf_army_ocp_rifleman']], [LeaderHQ,LeaderHQB]] call NR6_fnc_Sites;

I recommend placing the call inside the init of an object or game logic you plan on using as site center the same way I did in the example above.

Credits & Thanks:
All credits for CBA go to the CBA Team who made the framework on which my script is based. As this addon uses the CBA defense code with mild modifications, all credits for such code go to them.

License / Disclaimer:
As CBA is licensed under GPLv2, so is this script which uses slightly modified code from it.

-Initial release

- Community Base addons A3

Forum topic:
- BI forums

Enable javascript to be able to download from Armaholic please!

Tags: Position,   Patrol,   Site,   Building,   Occupy,   Ai,   Artificial Intelligence,   Spawn,   Support,   Script