_-xXShArK_OGXx-_   6 Posted January 29, 2021 Hi all, this is my first post so there is a good chance that I'm posting at the wrong place 🙂 I'm new to coding, but I'm slowly working my way through addActions and script calling and now it's ACE menu. I simply can't figure out all this local and global calling, but I got 21 addactions that I would like to make into Ace actions in the various menus. So i made an Action following ( borrowing ) the exampels on Ace forum and that became:  SHQHUpAction = ["SHQHandsUp","Hands UP","", { _target switchMove "acts_jetsmarshallingstop_loop"; }, {true}] call ace_interact_menu_fnc_createAction;  ["man", 0, ["ACE_MainActions"], SHQHUpAction, true] call ace_interact_menu_fnc_addActionToClass; Now it's supposed to be more advanced but for the love of good, I can't seem to get this to run when I host a coop on my computer. I know it's not being called global, just can't seem to find the right way to call it, could anyone give a little help? ( it's the "_target" that really seem to trick me ). Thx all. Share this post Link to post Share on other sites
stanhope   411 Posted January 29, 2021 To call it globally put it in the init.sqf file (see https://community.bistudio.com/wiki/Event_Scripts#init.sqf). And put this above the switchmove in the code block: "params ["_target", "_player", "_params"];" See the advanced example here: https://ace3mod.com/wiki/framework/interactionMenu-framework.html 1 Share this post Link to post Share on other sites
_-xXShArK_OGXx-_   6 Posted January 29, 2021 (edited) 37 minutes ago, stanhope said: To call it globally put it in the init.sqf file (see https://community.bistudio.com/wiki/Event_Scripts#init.sqf). And put this above the switchmove in the code block: "params ["_target", "_player", "_params"];" See the advanced example here: https://ace3mod.com/wiki/framework/interactionMenu-framework.html Thx champ,, so i made an init.sqf and put in ;  _condition = {       true    };    _statement = {       params ["_target", "_player", "_params"];     _target switchMove "acts_jetsmarshallingstop_loop";        }; SHQHUpAction = ["SHQHandsUp","Hands UP","",_statement, _condition] call ace_interact_menu_fnc_createAction;  ["man", 0, ["ACE_MainActions"], SHQHUpAction, true] call ace_interact_menu_fnc_addActionToClass; And the action is visible to all but it only changes on my computer, and the animation is not seen on the other computers Edited January 29, 2021 by _-xXShArK_OGXx-_ bad explanation of problem Share this post Link to post Share on other sites
stanhope   411 Posted January 29, 2021 You probably need to remote exec the switch move where the target is local, see: https://community.bistudio.com/wiki/switchMove https://community.bistudio.com/wiki/remoteExec Share this post Link to post Share on other sites
_-xXShArK_OGXx-_   6 Posted January 29, 2021 (edited) 33 minutes ago, stanhope said: You probably need to remote exec the switch move where the target is local, see: https://community.bistudio.com/wiki/switchMove https://community.bistudio.com/wiki/remoteExec  i'm getting closer,, and it seem to be working as intended. Reason that im not sure is that the guy i tested with, his ACE does the Halt action when he enters the menu and then it resets the animation, but i think it there Thx Mate 🙂 i will test it more tomorrow. and mark for solved then,, have a great weekend.. ( TESTED and solved thx.) iv put in ;    _condition = {       true    };    _statement = {           [_target, {params ["_target", "_player", "_params"]; _target switchMove "acts_jetsmarshallingstop_loop"}] remoteExec ["call", 0];        }; SHQHUpAction =  ["SHQHandsUp",  "Hands UP",  "",  _statement,  _condition  ] call ace_interact_menu_fnc_createAction;  ["man", 0, ["ACE_MainActions"], SHQHUpAction, true] call ace_interact_menu_fnc_addActionToClass; Edited January 29, 2021 by _-xXShArK_OGXx-_ Update Share this post Link to post Share on other sites