Skip to content

Commit

Permalink
Artillery Tables - Fix artillery UI not refreshing when being telepor…
Browse files Browse the repository at this point in the history
…ted from one vehicle to another (#10217)
  • Loading branch information
johnb432 authored Aug 17, 2024
1 parent 094e235 commit bdf6a17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/artillerytables/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
TRACE_2("CBA_settingsInitialized",GVAR(advancedCorrections),GVAR(disableArtilleryComputer));

if (hasInterface) then {
// Add hud overlay for actuall azimuth and elevation:
// Add hud overlay for actual azimuth and elevation:
GVAR(pfID) = -1;
["turret", LINKFUNC(turretChanged), true] call CBA_fnc_addPlayerEventHandler;

// Handles being teleported from one vehicle to another
["vehicle", {[_this select 0, (_this select 1) unitTurret (_this select 0)] call FUNC(turretChanged)}] call CBA_fnc_addPlayerEventHandler;

// Add ability to dynamically open rangetables:
["ace_interactMenuOpened", LINKFUNC(interactMenuOpened)] call CBA_fnc_addEventHandler;
};
Expand Down

0 comments on commit bdf6a17

Please sign in to comment.