- Scan CfgFactionClasses/CfgVehicles at runtime for selectable enemy factions - Add CfgFactionUnitMap overrides and keep legacy params as fallback
14 lines
461 B
Plaintext
14 lines
461 B
Plaintext
[] spawn {
|
|
waitUntil { !isNull findDisplay 46 };
|
|
sleep 1;
|
|
|
|
private _ceoUnit = missionNamespace getVariable ["ceo", objNull];
|
|
private _isCeoSlot =
|
|
!(isNull _ceoUnit && { player isEqualTo _ceoUnit }) ||
|
|
{ toLowerANSI (vehicleVarName player) isEqualTo "ceo" };
|
|
|
|
if (_isCeoSlot && { !(missionNamespace getVariable ["forge_pmc_missionSettingsApplied", false]) }) then {
|
|
[] call forge_pmc_fnc_openMissionSetupUI;
|
|
};
|
|
};
|