CalculateDistanceViaRoad

From Nomad DB
Revision as of 19:45, 16 April 2020 by Cobra (talk | contribs) (Created page with "Retrieves the road distance between two entities in 3D world space. == Syntax == <pre> CalculateDistanceViaRoad(entityA, entityB, maxDistanceToRoad) </pre> * '''entityA''' (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Related Pages