Skip to content

Commit

Permalink
Fix running before NEO_radioLogic init
Browse files Browse the repository at this point in the history
  • Loading branch information
Whigital authored and DarrellJMartin committed Oct 21, 2019
1 parent 2790e2a commit 26a0d22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/sys_acemenu/fnc_aceMenuCS.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Peer reviewed:
nil
---------------------------------------------------------------------------- */

// Wait for NEO_radioLogic to initialize //
waitUntil {!isNil "NEO_radioLogic"};
waitUntil {NEO_radioLogic getVariable ["init", false]};

// Define a global var with c2 items once instead of calling the function each time the menu condition is evaluated //
MOD(MIL_CS_Items) = [NEO_radioLogic getVariable ["combatsupport_item", "LaserDesignator"]];

Expand Down

0 comments on commit 26a0d22

Please sign in to comment.