From Nomad DB
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