/* * Author: CAA-Picard * Mount unit actions inside passenger submenu * Note: This function is NOT global. * * Argument: * 0: Vehicle * 1: Player * 3: Parameters * * Return value: * Children actions * * Public: No */ #include "script_component.hpp" EXPLODE_3_PVT(_this,_vehicle,_player,_parameters); diag_log "addPassengerActions"; private ["_unit","_actions"]; _unit = _parameters select 0; _varName = format [QEGVAR(interact_menu,Act_%1), typeOf _unit]; _actionTrees = missionNamespace getVariable [_varName, []]; _actions = []; // Mount unit MainActions menu _actions pushBack (_actionTrees select 0); _actions