Returns the horizontal coordinate of a taxi flight's destination node. Used in the default UI to draw lines between nodes; TaxiNodeSetCurrent() should be called first so the client can compute routes.

Only returns valid data while interacting with a flight master (i.e. between the TAXIMAP_OPENED and TAXIMAP_CLOSED events).


See also Taxi/Flight functions.

Signature:

dX = TaxiGetDestX(source, dest)

Arguments:

  • source - Index of the source flight point (between 1 and NumTaxiNodes()) (number)
  • dest - Index of the destination flight point (between 1 and NumTaxiNodes()) (number)

Returns:

  • dX - X coordinate of the destination taxi node (as a proportion of the taxi map's width; 0 = left edge, 1 = right edge) (number)