GetDistanceBetween(object, object)

The distance in meters between two objects

float GetDistanceBetween(
    object oObjectA,
    object oObjectB
);

Parameters

oObjectA

Any object represented in game.

oObjectB

Any object represented in game.


Description

Returns the distance in meters between two objects. Will return a float value of 0.0 if either of the two objects is INVALID.

UNKNOWN: What if the objects are in different areas?



Version

1.22

See Also

functions: GetDistanceBetweenLocations | GetDistanceToObject
categories: Combat Information Functions | Core AI Functions | Math Functions | Targeting Functions


 author: John Shuell, editor: Ryan Hunt
 Send comments on this topic.