2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-10-11 19:05:54 +00:00
|
|
|
/*
|
|
|
|
* Author: 654wak654
|
|
|
|
* Opens the pylon configuration menu for the aircraft module is placed on.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Module logic <OBJECT>
|
|
|
|
* 1: Synchronized units <ARRAY>
|
|
|
|
* 2: Activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [LOGIC, [bob, kevin], true] call ace_zeus_fnc_moduleConfigurePylons
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (canSuspend) exitWith {[FUNC(moduleConfigurePylons), _this] call CBA_fnc_directCall;};
|
|
|
|
|
2017-12-10 18:29:38 +00:00
|
|
|
params ["_logic"];
|
2017-10-11 19:05:54 +00:00
|
|
|
|
2017-12-10 18:29:38 +00:00
|
|
|
if !(local _logic) exitWith {};
|
2017-10-11 19:05:54 +00:00
|
|
|
|
|
|
|
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);
|