ACE3/addons/zeus/functions/fnc_moduleConfigurePylons.sqf
SilentSpike c1045e4266 Update vanilla zeus functions (#5888)
* Cleanup zeus module

* Update zeus BI functions

* Restore accidentally removed setting check
2017-12-10 12:29:38 -06:00

38 lines
802 B
Plaintext

/*
* 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
*/
#include "script_component.hpp"
if (canSuspend) exitWith {[FUNC(moduleConfigurePylons), _this] call CBA_fnc_directCall;};
params ["_logic"];
if !(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);