Soapy_87 1 Posted August 10, 2018 [ mcom, // Object "Arm Mcom", // Title of Action "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Icon "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Icon "_this distance _target < 5 && playerSide == WEST", // Condition for Action to be shown "_caller distance _target , 5", // Condition for Action to Progress {hint "Action Started"}, // Code executed when action starts. {}, // Code executed on every progress tick {hint "Action completed", execVM "addMcomDefuse.sqf";}, // Code executed on Completion {hint "Action interupted"}, // Code executed on interuption [], // Arguments passed to the scripts as _this select 3 5, // Action duration 0, // Priotiry true, // Remove on Completion false // Show in unconcious state ] remoteExec ["BIS_fnc_holdActionAdd", 0, mcom]; This is the script I am using to add the action. It successfully adds the action though when I begin the action I get the following error: https://gyazo.com/3b65011669795dc78e71fd3f9cc6dc10 anyone know how to fix this? Thanks, Soapy Share this post Link to post Share on other sites
Larrow 2822 Posted August 10, 2018 1 hour ago, Soapy_87 said: "_caller distance _target , 5", // Condition for Action to Progress {hint "Action completed", execVM "addMcomDefuse.sqf";}, // Code executed on Completion Comma in Condition Progress, should be some conditional ( < ) against 5 so as to return a bool Also comma in Completion Code block instead of ; to separate the two commands 1 Share this post Link to post Share on other sites