Method WorldObject:IsWithinDist [-] [+]

Returns true if the target is in the given distance of the WorldObject

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

Synopsis

isInDistance = WorldObject:IsWithinDist( target, distance )

isInDistance = WorldObject:IsWithinDist( target, distance, is3D )

Arguments

WorldObject target
See method description.
number distance

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
©2016 - Eluna Lua Engine