Skip to content

Commit

Permalink
Service vehicle search radius depends on target size
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Jul 18, 2019
1 parent 7be104a commit 3b0b0b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
File: fn_isServiceVehicleNearRequired..sqf
Date: 2019-06-18
Last Update: 2019-06-18
Last Update: 2019-07-18
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
Description:
Expand All @@ -23,7 +23,7 @@ params [

if !(vet_unflipping_require_serviceVehicle) exitWith {true};

private _nearObjects = nearestObjects [_unit, ["Air", "LandVehicle", "Slingload_base_F"], 20];
private _nearObjects = nearestObjects [_target, ["Air", "LandVehicle", "Slingload_base_F"], 5 + sizeOf typeOf _target];

// return
_nearObjects findIf {alive _x && {_x call vet_unflipping_fnc_isRepairVehicle}} != -1

0 comments on commit 3b0b0b4

Please sign in to comment.