Welcome to PenUltima Online. Click to login or register.

Functions:

Distance( object1, object2 )
Parameters:
Name Type
object1 UObject Reference
object2 UObject Reference
Explanation
Determines the distance between two objects. If either object is in a container, uses the world-position of its ultimate-parent container.
Notes: This distance is defined as the greater of the x-distance and the y-distance. z-distance is not taken into account. (This is neither Pythagorean distance nor Manhattan distance)
Return values
Integer - calculated distance on success
Errors
"Invalid parameter type"
Related
UObject