mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
36 lines
843 B
Plaintext
36 lines
843 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: List of signals (Return) <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ace_radiodirectionfinder_fnc_getSignalsUAV
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_list"];
|
|
|
|
{
|
|
private _freqMhz = _x getVariable [QGVAR(freqMhz), -1];
|
|
if (_freqMhz < 0) then {
|
|
[QGVAR(getUavFreq), [_x]] call CBA_fnc_serverEvent;
|
|
} else {
|
|
_list pushBack [getPosASL _x, _freqMhz, 10000];
|
|
private _unit1 = (UAVControl _x) param [0, objNull];
|
|
if (alive _unit1) then {
|
|
_list pushBack [getPosASL _unit1, _freqMhz, 10000];
|
|
};
|
|
private _unit2 = (UAVControl _x) param [2, objNull];
|
|
if (alive _unit2) then {
|
|
_list pushBack [getPosASL _unit2, _freqMhz, 10000];
|
|
};
|
|
};
|
|
} forEach allUnitsUAV;
|