From 6d8cdd9b1d905aba1a61a1d31b9593069a97b153 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Wed, 2 Jan 2019 09:55:03 -0600 Subject: [PATCH] Interaction - Disable open door action on houses with no user actions (#6760) Fix #6544 --- addons/interaction/functions/fnc_openDoor.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/interaction/functions/fnc_openDoor.sqf b/addons/interaction/functions/fnc_openDoor.sqf index d27ac52f44..73cf4e0a37 100644 --- a/addons/interaction/functions/fnc_openDoor.sqf +++ b/addons/interaction/functions/fnc_openDoor.sqf @@ -23,6 +23,10 @@ TRACE_2("openDoor",_house,_door); if (isNull _house) exitWith {}; +if ((configProperties [configFile >> "CfgVehicles" >> (typeOf _house) >> "UserActions"]) isEqualTo []) exitWith { + TRACE_1("Ignore houses with no UserActions",typeOf _house); // Fix problem with Shoothouse Walls +}; + private _getDoorAnimations = [_house, _door] call FUNC(getDoorAnimations); _getDoorAnimations params ["_animations"];