ACE3/addons/radiodirectionfinder/functions/fnc_addSignal.sqf

28 lines
657 B
Plaintext
Raw Normal View History

2019-08-27 04:34:11 +00:00
#include "script_component.hpp"
/*
* Author: PabstMirror
2019-09-06 03:58:27 +00:00
* Adds a scripted signal
2019-08-27 04:34:11 +00:00
*
* Arguments:
2019-09-06 03:58:27 +00:00
* 0: Source <ARRAY>or<OBJECT>
* 1: Frequency <NUMBER>
* 2: Power <NUMBER>
2019-08-27 04:34:11 +00:00
*
* Return Value:
* None
*
* Example:
2019-09-06 03:58:27 +00:00
* [player, 2400, 50] call ace_radiodirectionfinder_fnc_addSignal
2019-08-27 04:34:11 +00:00
*
2019-09-06 03:58:27 +00:00
* Public: Yes
2019-08-27 04:34:11 +00:00
*/
if (!isServer) exitWith {};
params [["_object", objNull, [objNull, []]], ["_freqMHz", 0, [0]], ["_powerMW", 0, [0]]];
TRACE_3("addSignal",_object,_freqMHz,_powerMW);
private _list = missionNamespace getVariable [QGVAR(signalList), []];
_list pushBack [_object, _freqMHz, _powerMW];
missionNamespace setVariable [QGVAR(signalList), _list, true];