User Tools

Site Tools


4rpl:commands:getnearestsnipertarget

Index

GetNearestSniperTarget

GetNearestSniperTarget(<-worldPosition <-range <-targetSpecials <-targetBlobs <-targetSkimmers <-targetForbs <-targetOrbs <-targetEggs) ->unit

Description

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.

Examples

GetNearestSniperTarget(GetUnitPosition(self) GetUnitRange(self) true true true true true true) ->unit

Index

4rpl/commands/getnearestsnipertarget.txt · Last modified: 2024/03/10 13:11 by Vertu