_SCAR 139 Posted September 11, 2017 I'm trying to add a custom action to a passenger in a truck: As you can see, only the default "Join group" action is available. I would like to add another action, for instance "get out of truck". This is what I have, but it's not working: _actionInfo = [ "ScarPipelineWorkerGetOutOfVehicle", // 0: Action name <STRING> "Get out of truck", // 1: Name of the action shown in the menu <STRING> "", // 2: Icon <STRING> // Statement <CODE> { params ["_target", "_player", "_params"]; [_target] orderGetIn false; unassignVehicle _target; }, // Condition <CODE> { params ["_target", "_player", "_params"]; (vehicle _target == _target) } ]; _action = _actionInfo call ace_interact_menu_fnc_createAction; [_worker, 0, ["ACE_MainActions", "ACE_Passengers"], _action] call ace_interact_menu_fnc_addActionToObject; ....Any ideas? Thank you, _SCAR 1 Share this post Link to post Share on other sites
Muzzleflash 111 Posted September 11, 2017 I think you need to add it to self-action since you are inside the vehicle I believe you can't interact with it. If so, you might need to change the condition. Nvm, I though you were inside also. Share this post Link to post Share on other sites
jshock 513 Posted September 11, 2017 ACE website's advanced example looks promising to give you some insight on "child" actions: https://ace3mod.com/wiki/framework/interactionMenu-framework.html#25-advanced-example 2 Share this post Link to post Share on other sites
_SCAR 139 Posted September 12, 2017 For anyone wondering, a couple of things only needed to be changed: this obviously needed to be attached to the vehicle an additional item was needed: the name of the passenger [_vehicle, 0, ["ACE_MainActions", "ACE_Passengers", str _worker], _action] call ace_interact_menu_fnc_addActionToObject; 2 Share this post Link to post Share on other sites