/* * Author: 654wak654 * Opens the pylon configuration menu for the aircraft module is placed on. * * Arguments: * 0: Module logic * 1: Synchronized units * 2: Activated * * Return Value: * None * * Example: * [LOGIC, [bob, kevin], true] call ace_zeus_fnc_moduleConfigurePylons * * Public: No */ #include "script_component.hpp" if (canSuspend) exitWith {[FUNC(moduleConfigurePylons), _this] call CBA_fnc_directCall;}; params ["_logic", "_units", "_activated"]; if !(_activated && {local _logic}) exitWith {}; private _aircraft = attachedTo _logic; deleteVehicle _logic; if (isNull _aircraft) exitWith { [LSTRING(NothingSelected)] call FUNC(showMessage); }; if (!alive _aircraft) exitWith { [LSTRING(OnlyAlive)] call FUNC(showMessage); }; [_aircraft, true] call EFUNC(pylons,showDialog);