From Nomad DB
Revision as of 20:36, 27 October 2020 by SpeckBomber (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Retrieves the road distance between two entities in 3D world space.


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

Related Pages