GetDistanceBetween

From Dragon Age Toolset Wiki
Revision as of 18:55, 2 March 2010 by BryanDerksen (Talk | contribs) (looks okay, removing tag)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the distance between two objects.

float GetDistanceBetween(
object oObjectA,
object oObjectB
);
Parameters:
oObjectA
The first object
oObjectB
The second object
Returns:

Returns the distance between the two objects. Returns -1.0f on error.

Source:

script.ldf

Description

Returns the distance between object oObjectA and object oObjectB. Distance is measured through three dimensional space and not just along the xy plane, so the hieght component of each object's location is relevant.


See also

GetDistanceBetweenLocations