diff --git a/addons/diagnostic/XEH_preInit.sqf b/addons/diagnostic/XEH_preInit.sqf
index b66a11199..64ee54f46 100644
--- a/addons/diagnostic/XEH_preInit.sqf
+++ b/addons/diagnostic/XEH_preInit.sqf
@@ -45,7 +45,7 @@ if (getMissionConfigValue ["EnableTargetDebug", 0] == 1 || {getNumber (configFil
missionNamespace setVariable [_varName, [_statementText, _returnString, _duration]];
if (_clientID != CBA_clientID) then {
- publicVariable _varName; // send back over network
+ _clientID publicVariableClient _varName; // send back over network
};
}] call CBA_fnc_addEventHandler;
diff --git a/addons/diagnostic/fnc_initTargetDebugConsole.sqf b/addons/diagnostic/fnc_initTargetDebugConsole.sqf
index 7026fd1e1..c7dcebc45 100644
--- a/addons/diagnostic/fnc_initTargetDebugConsole.sqf
+++ b/addons/diagnostic/fnc_initTargetDebugConsole.sqf
@@ -144,7 +144,7 @@ private _fnc_updateWatchInfo = {
missionNamespace setVariable [_varName, nil];
} else {
if ((_editText isEqualTo _responseStatement) && {_duration > 0.1}) exitWith {}; // don't re-run if statement that took a long time
- if ((diag_tickTime - _lastSent) > random [0.1, 0.2, 0.3]) then {
+ if ((diag_tickTime - _lastSent) > random GVAR(watchInfoRefreshRateArray)) then {
_x set [3, diag_tickTime]; // set last run to now
[QGVAR(watchVariable), [CBA_clientID, _varIndex, _editText], GVAR(selectedClientID)] call CBA_fnc_ownerEvent; // send statement to target
};
diff --git a/addons/diagnostic/initSettings.sqf b/addons/diagnostic/initSettings.sqf
index 53919409d..1380b9aaa 100644
--- a/addons/diagnostic/initSettings.sqf
+++ b/addons/diagnostic/initSettings.sqf
@@ -10,3 +10,15 @@
],
2
] call CBA_fnc_addSetting;
+
+[
+ QGVAR(watchInfoRefreshRate), "SLIDER",
+ [LLSTRING(WatchInfoRefreshRate), LLSTRING(WatchInfoRefreshRateTooltip)],
+ [LELSTRING(main,DisplayName), LELSTRING(UI,Category)],
+ [0.2, 60, 0.2, 1],
+ 1,
+ {
+ params ["_value"];
+ GVAR(watchInfoRefreshRateArray) = [_value - 0.1, _value, _value + 0.1];
+ }
+] call CBA_fnc_addSetting;
diff --git a/addons/diagnostic/stringtable.xml b/addons/diagnostic/stringtable.xml
index 71629a6c5..d77bc3ec8 100644
--- a/addons/diagnostic/stringtable.xml
+++ b/addons/diagnostic/stringtable.xml
@@ -111,6 +111,12 @@
Type d'indentation qui peut être employée dans la console de débogage.\nTab ajoute une indentation, et Shift + Tab en supprime une.
Tipo de sangría que se puede agregar a la expresión en la consola de depuración presionando la tecla Tab o eliminar presionando Shift + Tab
+
+ Refresh rate target watcher field
+
+
+ Refresh rate (in seconds) for the CBA target watcher fields to the right of the debug console.
+
4 Spaces
4 Spacje