add forcedPilotCheck setting, some formatting changes
This commit is contained in:
@@ -256,7 +256,8 @@ if (hasInterface) then {
|
||||
if ((typeOf player) in ["B_Helipilot_F", "B_helicrew_F"]) then {
|
||||
[{
|
||||
if (not (
|
||||
missionNamespace getVariable ["milsim_respawn_setting_reinsertion_enabled", true]
|
||||
missionNamespace getVariable ["milsim_respawn_setting_reinsertion_enabled", true] &&
|
||||
missionNamespace getVariable ["milsim_respawn_setting_reinsertion_pilotForcedCheckEnabled", true]
|
||||
)) exitWith {};
|
||||
private _lastCheck = localNamespace getVariable ["milsim_respawn_lastReinsertQueueCheck", diag_tickTime];
|
||||
if (
|
||||
@@ -266,7 +267,7 @@ if (hasInterface) then {
|
||||
|
||||
// if last check was greater than 20 minutes ago, we'll prompt the notification now and reset the timer
|
||||
localNamespace setVariable ["milsim_respawn_lastReinsertQueueCheck", diag_tickTime];
|
||||
|
||||
|
||||
call milsim_respawn_fnc_showReinsertQueueNotification;
|
||||
}, 30] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user