Hi, I would like to write my own scipt which can be executed from the CBA Self-Interaction menu (It's the same as the ACE menu.). So far i have managed to add a new button to the CBA/ACE menu. I can click but it wont execute the script. Any suggestions? thanks
In my init i have:
["player", [ace_sys_interaction_key_self], -20, ["myScript\fnc_menuDef_Self.sqf", "main"]] call CBA_ui_fnc_add;
fnc_menuDef_Self.sqf
_menu = [
["main", "test", "popup"],
[
["kill me",
{[] execVM "myScript.sqf";},
"", "", "", -1, 1, 1
]
]
];
_menu
myScript.sqf
player setUnconscious true;