mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 14:43:29 +00:00
18 lines
564 B
Plaintext
18 lines
564 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
private _existingPfh = player getVariable [QGVAR(mavlinkPFH), -1];
|
|
if (_existingPfh >= 0) then {
|
|
[_existingPfh] call CBA_fnc_removePerFrameHandler;
|
|
player setVariable [QGVAR(mavlinkPFH), -1];
|
|
};
|
|
|
|
private _broadcastingUav = player getVariable [QGVAR(broadcastingUav), objNull];
|
|
if (!isNull _broadcastingUav) then {
|
|
_broadcastingUav setVariable ["armatak_uav_mavlink_broadcasting", false, true];
|
|
systemChat "UAV broadcasting stopped";
|
|
};
|
|
|
|
player setVariable [QGVAR(broadcastingUav), objNull];
|