The GetDistanceBetweenLocations()
NWScript command returns the distance (in meters) between two provided locations. This will return -1.0 if the locations are in different areas or if either of the locations is invalid.
The distance takes into account differences in the z-coordinate.
Definition[]
float GetDistanceBetweenLocations (location lLocationA, location lLocationB
)
location lLocationA
- One of the endpoints of the distance to be determined.
location lLocationB
- The other endpoint of the distance to be determined.
See also[]
GetDistanceBetween()
— for getting the distance between objects.