Jacob Schmidt 8582e6c5e5 Discover enemy factions dynamically from loaded mods
- Scan CfgFactionClasses/CfgVehicles at runtime for selectable enemy factions
- Add CfgFactionUnitMap overrides and keep legacy params as fallback
2026-05-23 01:23:14 -05:00
..

Mission Manager Functions

Mission manager functions coordinate dynamic mission generation for forge_pmc_simulator.Tanoa.

Registered Functions

  • forge_pmc_fnc_missionManager is postInit and starts the dynamic mission manager after setup settings are applied.
  • forge_pmc_fnc_persistentCadMissionManager starts the persistent CAD-oriented mission dispatcher.
  • forge_pmc_fnc_updateEnemyCountFromActivePlayers updates the active-player scaling multiplier used by enemy spawns.

Helper Scripts

  • adminActivatePersistentCad.sqf is an admin/server-console helper that calls forge_pmc_fnc_persistentCadMissionManager.

Runtime Notes

forge_pmc_fnc_missionManager waits for forge_pmc_missionSettingsApplied before it creates generator objects. If no UI settings are submitted within the fallback window, it applies mission param defaults and starts generation.

Generated tasks are registered through forge_server_task_fnc_startTask with source mission_manager, so they appear in the normal Forge task/CAD lifecycle.