Difference between revisions of "CalculateDistanceViaRoad"
From Nomad DB
(Created page with "Retrieves the road distance between two entities in 3D world space. == Syntax == <pre> CalculateDistanceViaRoad(entityA, entityB, maxDistanceToRoad) </pre> * '''entityA''' (...") |
SpeckBomber (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | {{Page_WD2}} | ||
Retrieves the road distance between two entities in 3D world space. | Retrieves the road distance between two entities in 3D world space. | ||
Latest revision as of 19:36, 27 October 2020
Retrieves the road distance between two entities in 3D world space.
Syntax
CalculateDistanceViaRoad(entityA, entityB, maxDistanceToRoad)
- entityA (string): ID of the first entity
- entityB (string): ID of the second entity
- maxDistanceToRoad (number): Maximum distance any of the specified entities can have to the road before the pathfinding request becomes invalid
- Returns (number): Road distance between the specified entities in 3D world space