mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-14 03:43:28 +00:00
Added MavLink mocked drone support as client side feature
This commit is contained in:
16
addons/uav/functions/fnc_stopMavlinkBroadcast.sqf
Normal file
16
addons/uav/functions/fnc_stopMavlinkBroadcast.sqf
Normal file
@@ -0,0 +1,16 @@
|
||||
#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 {
|
||||
systemChat "UAV broadcasting stopped";
|
||||
};
|
||||
|
||||
player setVariable [QGVAR(broadcastingUav), objNull];
|
||||
Reference in New Issue
Block a user