I have a pretty good system to spawn random patrols using the scenario framework. I get a random number/type of units to spawn when you enter the 1000m Area. And they will select a random set of waypoints to patrol.
The issue is each area you enter it spawns the AI. After a while the world is full of AI, with no way to remove them unless you kill everyone of them.
What I need is a trigger/method to de-spawn the AI when you leave the area.
I am using all the scenario framework components. Can't figure out what would be the equivalent of activate/deactivate trigger.
Currently, v1.1.0.42, all you need to turn the spawn-despawn ON is here:
Source: https://community.bistudio.com/wiki/Arma_Reforger:Scenario_Framework#Dynamic_Spawn/Despawn_2
Critical:
If you're running a Coop/PvE/CombatOps mission, in your World Editor, through the Hierarchy column area, click on the GameModeSF and then right-click over its property called SCR_GameModeSF. Click on Change Class and select SCR_GameModeCombatOpsManager and turn on the Dynamic Despawn;
If you're running another kind of mission, probably you should leave the original component and only turn on the Dynamic Despawn checkbox;