forge/arma/forge_pmc_simulator.Tanoa/initPlayerLocal.sqf
2026-05-23 09:15:42 -05:00

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;
};
};