Jump to content
Sign in to follow this  
brainslush

CBA/ACE Self-Interaction Menu does not execute script

Recommended Posts

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;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×