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.
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - 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.
- function GetDistanceBetween (object oObjectA, object oObjectB) Get the distance in metres between oObjectA and oObjectB.
* Return value if either object is invalid: 0.0f
* Return type: float
* Include file: nwscriptdefn
|
dcterms:subject
| |
dbkwik:nwn2/proper...iPageUsesTemplate
| |
returns
| |
Name
| |
param
| - object oObjectA
- object oObjectB
|
param2desc
| - The other of the objects marking an end of the distance to be determined.
|
param1desc
| - One of the objects marking an end of the distance to be determined.
|
dbkwik:nwn/property/wikiPageUsesTemplate
| |
abstract
| - 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.
- function GetDistanceBetween (object oObjectA, object oObjectB) Get the distance in metres between oObjectA and oObjectB.
* Return value if either object is invalid: 0.0f
* Return type: float
* Include file: nwscriptdefn
|