fnc_moduleJammerSettings.sqf 350 B

123456789101112
  1. params ["_logic"];
  2. if (isNull _logic) exitWith {};
  3. private _jammerInit = _logic getVariable ["rd501_ui_jammerInit", [300,160]];
  4. _attach = attachedTo _logic;
  5. if(isNull _attach) then {
  6. deleteVehicle _logic; // Don't spawn empty jammer
  7. }else
  8. {
  9. [_attach, _jammerInit select 0, _jammerInit select 1] call rd501_fnc_jammersAdd;
  10. deleteVehicle _logic;
  11. };