Add more sources for pylon (Taru and Huron pods) (#5682)

Close #5677
This commit is contained in:
PabstMirror 2017-10-26 12:31:34 -05:00 committed by GitHub
parent f1ca76669f
commit a24b095b6a

View File

@ -15,7 +15,7 @@
"",
{[_target] call FUNC(showDialog)},
{
private _vehicles = _target nearObjects ["LandVehicle", GVAR(searchDistance) + 10];
private _vehicles = nearestObjects [_target, ["Air", "LandVehicle", "Slingload_base_F", "ReammoBox_F"], GVAR(searchDistance) + 10];
private _filter = ["transportAmmo", QEGVAR(rearm,defaultSupply)] select (["ace_rearm"] call EFUNC(common,isModLoaded));
private _rearmVehicles = {(getNumber (configFile >> "CfgVehicles" >> typeOf _x >> _filter)) > 0} count _vehicles;