Method WorldObject:IsWithinDistInMap [-] [+]

Returns true if the WorldObject is on the same map and within given distance

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

Synopsis

isInDistance = WorldObject:IsWithinDistInMap( target, distance )

isInDistance = WorldObject:IsWithinDistInMap( 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