Engima's Civilians v0.90.40 by Engima  
Description:
Engima's Civilians is a script that adds dynamic civilians to an Arma 3 mission. Civilians spawn near player(s) and are removed again when they are far away. Works on maps with enterable buildings.

You can customize how many civilians there will be, civilian units classes, the maximum number of groups to use, minimum spawn distance, maximum spawn distance, and blacklist markers to define areas where no civilians will be. You also add callbacks if you want to do something when units spawn or being removed.

Script works in singleplayer, multiplayer, hosted, dedicated, for JIPs, and on any map with enterable buildings.

Media:
Youtube video - How to create a quick mission with civilians.
https://youtu.be/OVirxev6wjw

Download:
Download Link at Armaholic.
Also released as CPack Engima.Civilians for the TypeSqf Editor.
 
Installation:
Manually:
1. Copy folder "Engima" to root of your mission folder.
2. Create the file "init.sqf" in your mission folder (if you don't already have it). Add the following line to the top of the init.sqf: call compile preprocessFileLineNumbers "Engima\Civilians\Init.sqf"; 3. Customize the script in the file "Engima\Civilians\ConfigAndStart.sqf".
 
TypeSqf
1. Open the CPack console and run command "install Engima.Civilians".

Usage:
Here is the simplest example that starts the civilian script with all default parameters. This code is to be put in Engima\Civilians\ConfigAndStart.sqf. [] spawn ENGIMA_CIVILIANS_StartCivilians; Here is an example that uses all parameters and first saves them in a variable named "_parameters". The function call (or spawn) that starts the civilian script is beneath. This code are to be put in Engima\Civilians\ConfigAndStart.sqf. // Set civilian parameters. _parameters = [     ["UNIT_CLASSES", ["C_man_1", "C_man_1_1_F", "C_man_1_2_F"]],     ["UNITS_PER_BUILDING", 0.1],     ["MAX_GROUPS_COUNT", 100],     ["MIN_SPAWN_DISTANCE", 50],     ["MAX_SPAWN_DISTANCE", 500],     ["BLACKLIST_MARKERS", []],     ["HIDE_BLACKLIST_MARKERS", true],     ["ON_UNIT_SPAWNED_CALLBACK", {}],     ["ON_UNIT_REMOVE_CALLBACK", { true }],     ["DEBUG", true] ]; // Start the civilian script _parameters spawn ENGIMA_CIVILIANS_StartCivilians; Documentation and a complete reference of set up parameters can be found in file "Engima\Civilians\Documentation.txt".

How to update from older version:
Manually:
1. Back up your own customization file (Engima\Civilians\ConfigAndStart.sqf).
2. Replace the folder Engima\Civilians with the corresponding folder in the download package.
3. Replace the original ConfigAndStart.sqf with your own ConfigAndStart.sqf that was backed up in step 1.

TypeSqf:
1. Open the CPack console and run command "update Engima.Civilians".

Change log:
v0.90.40
- First version.
 
Requirements:
Arma 3.

Other releases
Engima's Traffic
Engima's Simple Tasks
The ASCOM protocol