Arma 3
Advanced Developer Tools
Advanced Usage: CBA Macro Usage
In order to use CBA macros, not only do you need to include your script_component path, you also need to include the path to the script_macros_common file in CBA.

If you have your script_component.hpp pointing to script_mod.hpp, you do not need to include the script_mod.hpp.

#include "\z\myMod\addons\main\script_component.hpp" QGVAR(test) // without, it fails // returns "DOUBLES(myMod,main)_test"

#include "\x\cba\addons\main\script_macros_common.hpp" #include "\z\myMod\addons\main\script_component.hpp" QGVAR(test) // correct setup // returns "myMod_main_test"

When using non string macros such as GVAR or FUNC, you will get a lint error. It will still function as normal.
Last edited by Hypoxic; 17 Jun @ 7:28pm