diff --git a/addons/spectator/XEH_preInit.sqf b/addons/spectator/XEH_preInit.sqf index 0b6a2614d7..c6c1e91a50 100644 --- a/addons/spectator/XEH_preInit.sqf +++ b/addons/spectator/XEH_preInit.sqf @@ -7,7 +7,7 @@ PREP(handleInterface); PREP(handleKilled); PREP(handleMouse); PREP(handleRespawn); -PREP(handleTree); +PREP(handleUnits); PREP(moduleSpectatorSettings); PREP(setSpectator); PREP(updateCamera); @@ -31,5 +31,4 @@ GVAR(unitList) = []; GVAR(unitBlacklist) = []; GVAR(unitWhitelist) = []; - ADDON = true; diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf index 5853fbe4c7..58f10cde11 100644 --- a/addons/spectator/functions/fnc_handleInterface.sqf +++ b/addons/spectator/functions/fnc_handleInterface.sqf @@ -130,7 +130,7 @@ switch (toLower _mode) do { (_display displayCtrl IDC_TOOL_VIEW) ctrlSetText (["FREE","FIRST","THIRD"] select GVAR(camMode)); // Keep unit tree up to date - [FUNC(handleTree), 10] call CBA_fnc_addPerFrameHandler; + [FUNC(handleUnits), 10] call CBA_fnc_addPerFrameHandler; // Hacky way to enable keybindings //_display displayAddEventHandler ["KeyUp", {[_this,'keyup'] call CBA_events_fnc_keyHandler}]; @@ -241,6 +241,12 @@ switch (toLower _mode) do { case 57: { // Spacebar [[2,0,1] select GVAR(camMode)] call FUNC(updateCamera); }; + case 203: { // Left arrow + + }; + case 205: { // Right arrow + + }; }; true diff --git a/addons/spectator/functions/fnc_handleTree.sqf b/addons/spectator/functions/fnc_handleUnits.sqf similarity index 96% rename from addons/spectator/functions/fnc_handleTree.sqf rename to addons/spectator/functions/fnc_handleUnits.sqf index 489cfedd5b..d129017ee4 100644 --- a/addons/spectator/functions/fnc_handleTree.sqf +++ b/addons/spectator/functions/fnc_handleUnits.sqf @@ -9,7 +9,7 @@ * None * * Example: - * [] call ace_spectator_fnc_handleTree; + * [ace_spectator_fnc_handleUnits, 10] call CBA_fnc_addPerFrameHandler; * * Public: No */