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.
| Attributes | Values |
|---|
| rdfs:label
| - GetDistanceBetweenLocations
|
| rdfs:comment
| - 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.
- function GetDistanceBetweenLocations (location lLocationA, location lLocationB) Get the distance between lLocationA and lLocationB.
* Return type: float
* Include file: nwscriptdefn
|
| dcterms:subject
| |
| dbkwik:nwn2/proper...iPageUsesTemplate
| |
| returns
| |
| Name
| - GetDistanceBetweenLocations
|
| param
| - location lLocationA
- location lLocationB
|
| param2desc
| - The other endpoint of the distance to be determined.
|
| param1desc
| - One of the endpoints of the distance to be determined.
|
| dbkwik:nwn/property/wikiPageUsesTemplate
| |
| abstract
| - 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.
- function GetDistanceBetweenLocations (location lLocationA, location lLocationB) Get the distance between lLocationA and lLocationB.
* Return type: float
* Include file: nwscriptdefn
|