mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add deprecate sitting component
This commit is contained in:
parent
3d74c25c97
commit
7a7e930024
@ -8,7 +8,7 @@ class CfgVehicles {
|
||||
category = "ACE";
|
||||
displayName = CSTRING(ModuleDisplayName);
|
||||
function = QFUNC(moduleInit);
|
||||
scope = 2;
|
||||
scope = 1;
|
||||
isGlobal = 1;
|
||||
isSingular = 1;
|
||||
icon = QUOTE(PATHTOF(UI\Icon_Module_Sitting_ca.paa));
|
||||
|
@ -3,11 +3,12 @@
|
||||
// Exit on Headless
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
GVAR(isEnabled) = false;
|
||||
["SettingsInitialized", {
|
||||
TRACE_1("SettingInit", GVAR(enable));
|
||||
|
||||
if ([[QUOTE(ADDON), QGVAR(enable)], ["acex_sitting", "acex_sitting_enable"], "3.7.0"] call EFUNC(common,deprecateComponent)) exitwith {};
|
||||
//If not enabled, then do not add CanInteractWith Condition or event handlers:
|
||||
if (!GVAR(enable)) exitWith {};
|
||||
if (!GVAR(enable) || GVAR(isEnabled)) exitWith {};
|
||||
GVAR(isEnabled) = true;
|
||||
|
||||
// Add interaction menu exception
|
||||
["isNotSitting", {isNil {(_this select 0) getVariable QGVAR(isSitting)}}] call EFUNC(common,addCanInteractWithCondition);
|
||||
|
Loading…
Reference in New Issue
Block a user