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 minrangeValid numbers: all decimal numbers.
number maxrangeValid numbers: all decimal numbers.
boolean is3D (true)If false, only x,y coordinates used for checking.
Returns
boolean isInDistance- See method description.