1234567891011121314151617 |
- if(isServer) then {
- diag_log "Clearing All Jammers for Server";
- private _jammers = missionNamespace getVariable ["rd501_jammers", []];
- {
- params["_jammer", "_radius", "_strength", "_jipId"];
- [_jipId] call CBA_fnc_removeGlobalEventJIP;
- } forEach _jammers;
- missionNamespace setVariable ["rd501_jammers",[], true];
- };
- if(hasInterface) then {
- diag_log "Clearing All Jammers for Client";
- missionNamespace setVariable ["rd501_jammers",[]];
- player setVariable ["rd501_jammers_pfh", -1];
- };
- true
|