FANDOM


The GetDistanceBetween() NWScript command returns the distance (in meters) between two provided objects. This will return 0.0 if the distance cannot be determined for some reason, such as when the objects are in different areas, one of the objects is invalid, or one of the objects does not have a location (e.g. an area). (This default return value is different than those for the other GetDistance* commands.)

The distance takes into account differences in the z-coordinate.

DefinitionEdit

float GetDistanceBetween (object oObjectA, object oObjectB)

object oObjectA 
One of the objects marking an end of the distance to be determined.
object oObjectB 
The other of the objects marking an end of the distance to be determined.

See also Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.