Method WorldObject:IsInRange [-] [+]

Returns true if the target is within given range

Notice that the distance is measured from the edge of the WorldObjects.

Synopsis

isInDistance = WorldObject:IsInRange( target, minrange, maxrange )

isInDistance = WorldObject:IsInRange( target, minrange, maxrange, is3D )

Arguments

WorldObject target
See method description.
number minrange

Valid numbers: all decimal numbers.

number maxrange

Valid numbers: all decimal numbers.

boolean is3D (true)

If false, only x,y coordinates used for checking.

Returns

boolean isInDistance
See method description.

Generated on 11/04/2018
©2016 - Eluna Lua Engine