Skip to content

Commit

Permalink
Mine Detector - Change detectable hash so it can be editable by missi…
Browse files Browse the repository at this point in the history
…on scripts (#10379)

Mine Detector - Store hash so it can be editable by scripts
  • Loading branch information
PabstMirror authored Oct 9, 2024
1 parent a2fc604 commit e9eabca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions addons/minedetector/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;

GVAR(detectableClasses) = +(uiNamespace getVariable QGVAR(detectableClasses));

ADDON = true;
2 changes: 1 addition & 1 deletion addons/minedetector/functions/fnc_getDetectedObject.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private _distance = -1;
};

// If an object was detected, exit the search
if ((typeOf _x) in (uiNamespace getVariable QGVAR(detectableClasses))) exitWith {
if ((typeOf _x) in GVAR(detectableClasses)) exitWith {
_isDetectable = true;
_distance = _detectorPointAGL distance _x;
_mine = _x;
Expand Down

0 comments on commit e9eabca

Please sign in to comment.