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 Setup Functions

Mission setup functions own startup configuration for forge_pmc_simulator.Tanoa.

Registered Functions

  • forge_pmc_fnc_openMissionSetupUI opens the browser-control startup UI.
  • forge_pmc_fnc_handleMissionSetupUIEvents handles UI events from A3API.SendAlert.
  • forge_pmc_fnc_setupMenu_applySettings applies UI overrides or mission parameter defaults into forge_pmc_missionSettings.

Startup Flow

The CEO client opens the setup UI from initPlayerLocal.sqf when forge_pmc_missionSettingsApplied is not set. Other players do not receive the startup setup UI.

Selecting Start Mission sends UI values to the server and applies them. Selecting Cancel applies the existing Arma mission params/defaults immediately.

Shared State

  • forge_pmc_missionSettings: HashMap of applied settings.
  • forge_pmc_missionSettingsApplied: Boolean gate used by the mission manager.
  • ENEMY_FACTION_STR and ENEMY_SIDE: selected faction and resolved Arma side.

Reusable faction and setting lookup helpers live in functions\helpers.