⇐ Index
GetNearestSniperTarget(<-worldPosition <-range <-targetSpecials <-targetBlobs <-targetSkimmers <-targetForbs <-targetOrbs <-targetEggs) ->unit
Finds the nearest enemy unit that a sniper would shoot at within range (a float) from worldPosition (a vector3). The target booleans specify whether a unit of that type is targeted.
If a target unit is not found, -1 is returned.
GetNearestSniperTarget(GetUnitPosition(self) GetUnitRange(self) true true true true true true) ->unit
⇐ Index