User Tools

Site Tools


4rpl:commands:getnearestsnipertarget

This is an old revision of the document!


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.

Examples

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

Index

4rpl/commands/getnearestsnipertarget.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1