Module Ambient Civilians - mrzachhigginsofficial/Arma3-ProjectHedes GitHub Wiki
Overview
Module Introduction
Module Location: Systems > Project Hedes Ambient Modules > Area Ambient Civilians
The Ambient Garrison Module allows creators to populate specific areas within their scenario with a group of civilians. Civilians will randomly walk around an area. When a weapon is fired near them, they will play one of 4 random animations and run to a random room in a nearby building.
Parameters
Parameter Name | Default Value | Description |
---|---|---|
Number of units/vehicles | 5 | The max number of units that this group can have. The module will try to keep this group filled when appropriate. This value is per trigger. If no triggers are synchronized, it applies to the module's own area. |
Array of Units | ['C_man_polo_1_F_afro','C_man_polo_2_F_afro',...] | Array of cfgVehicle strings. Supports modded units. See https://community.bistudio.com/wiki/Arma_3:_CfgVehicles_WEST for vanilla. |
Behavior/Usage
Default Module Behavior
- Units will not spawn if there are any enemy players within range (dynamic simulation range for the scenario).
- A new group is created and tracked by the module.
- New infantry units are added to the group until the group is full. Based on max vehicles configuration property.
- Units are added to the global cleanup list (to be used with the HEDES cleanup module).
- Unit simulation is paused until any player enters the dynamic simulation range of ANY of the garrison group units.
- When units are killed, the group is replenished once enemy players leave the dynamic simulation range of any group members.
Alternative behaviors
Synced Triggers
- This module can be synced to multiple triggers and replicate its behavior across multiple zones.
- Triggers act as the spawn point (see instructions below).
- The local trigger that the module creates by default will be disabled and only the synced triggers will be used.
- The module's behavior will be replicated across all areas.
Demonstration
In the 3den Editor
-
Find and place the HEDES Area Ambient Civs Module.
-
Optional - Sync a few triggers to this module where you want civilians to appear.
-
Test Scenario Pt. 1 - Remain out of range and observe in spectator mode. Note the units have their simulation disabled.
-
Test Scenario Pt. 2 - Move-in range of module and observe in spectator mode. Note the units have their simulation enabled and are carrying out their configured task.