Author: Engima
Author Website:

Requirements: No addons required

Version: 0.90.40

Short description: Script that adds dynamic civilians to a map.

Date: 2016-02-04 18:53


Comments: (0)
Rating:



 



Engima's Civilians

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 unit 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.

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: [code=auto:0]call compile preprocessFileLineNumbers "Engima\Civilians\Init.sqf";[/code]
3. Customize the script in the file "Engima\Civilians\ConfigAndStart.sqf".


Media:



Armaholic.com has its own Youtube channel where we will cover the Community made releases.
Subscribe to the Armaholic.com Youtube channel


Usage:
Here is the simplest example that starts the civilian script with all default parameters. This code are 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".


Changelog:
v0.90.40
- First version.
 

Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Civilian,   Customize,   Dynamic,   Life