From 340d2d2437aa0a59cc24175332ec5396e8d7f445 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 6 Oct 2013 15:29:22 -0500 Subject: [PATCH] added new storage to gear monitor --- SQF/dayz_code/compile/object_monitorGear.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/object_monitorGear.sqf b/SQF/dayz_code/compile/object_monitorGear.sqf index 7984d4a25..6eea39f43 100644 --- a/SQF/dayz_code/compile/object_monitorGear.sqf +++ b/SQF/dayz_code/compile/object_monitorGear.sqf @@ -60,13 +60,14 @@ if (vehicle player != player) then { _isVehicle = _object isKindOf "AllVehicles"; _isMan = _object isKindOf "Man"; _isStorage = _object isKindOf "Land_A_tent"; +_isnewstorage = (typeOf _object) in DZE_isNewStorage; _timeout = time + 2; waitUntil { !(isNull (findDisplay 106)) or (_timeout < time) }; //diag_log format["object_monitorGear.sqf: _object: %1 _isStorage: %4 _isVehicle: %2 _isMan: %3 _display: %5", _object, _isVehicle, _isMan, _isStorage, findDisplay 106]; -if ((_isVehicle or _isStorage) and (!_isMan) and (!(isNull (findDisplay 106)))) then { +if ((_isVehicle or _isStorage or _isnewstorage) and (!_isMan) and (!(isNull (findDisplay 106)))) then { _objectName = getText (configFile >> "CfgVehicles" >> (typeof _object) >> "displayName"); _controlText = [] call _getControlText;