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.


isInDistance = WorldObject:IsWithinDist( target, distance )

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


WorldObject target
See method description.
number distance

Valid numbers: all decimal numbers.

boolean is3D (true)

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


boolean isInDistance
See method description.

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