Jacob Schmidt afb3c665af Add PMC simulator mission pack and setup flow
- Add mission config, params, and function registrations
- Implement faction helpers and mission generators
- Include setup docs, CBA settings, and mission scaffolding
2026-05-22 22:38:38 -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 client opens the setup UI from initPlayerLocal.sqf when forge_pmc_missionSettingsApplied is not set.

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.