Returns the horizontal coordinate of a taxi flight's source 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:

sX = TaxiGetSrcX(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:

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