Im trying to make a simple electronic warfare vehicle to jam drones, i have a script that works for markers, but i dont know to make it work with vehicles, I imagine it's pretty simple, but I can't figure it out.   The idea is that all drones that come within a range of 3.5 km of vehicle will get destroyed, now here in this case deleted, a simple way to defend against drones.   this works for markers in the INIT.sqf file // Clean Drones nul = [] spawn
{
  private _pos = markerPos "EWvehicle";
  while {true} do
  {
    sleep 15;
    {deleteVehicle _x} forEach nearestObjects [_pos, ["O_UAV_01_F","O_Static_Designator_02_F","O_UAV_06_medical_F","O_UAV_06_F"], 3500];
  };
};