# Method Global:AddTaxiPath [-] [+]

Adds a taxi path to a specified map, returns the used pathId.

Note that the first taxi point needs to be near the player when he starts the taxi path. The function should also be used only once per path added so use it on server startup for example.

Related function: Player:StartTaxi

    -- Execute on startup
    local pathTable = {{mapid, x, y, z}, {mapid, x, y, z}}
    local path = AddTaxiPath(pathTable, 28135, 28135)

    -- Execute when the player should fly
    player:StartTaxi(path)

## Synopsis

`actualPathId = AddTaxiPath( waypoints, mountA, mountH )`

`actualPathId = AddTaxiPath( waypoints, mountA, mountH, price )`

`actualPathId = AddTaxiPath( waypoints, mountA, mountH, price, pathId )`

## Arguments

`table waypoints`

  Table containing waypoints: {map, x, y, z[, actionFlag, delay]}.

`number mountA`

  Alliance Creature entry.

  Valid numbers: integers from 0 to 4,294,967,295.

`number mountH`

  Horde Creature entry.

  Valid numbers: integers from 0 to 4,294,967,295.

`number price (0)`

  Price of the taxi path.

  Valid numbers: integers from 0 to 4,294,967,295.

`number pathId (0)`

  Path Id of the taxi path.

  Valid numbers: integers from 0 to 4,294,967,295.

## Returns

`number actualPathId`

  Valid numbers: integers from 0 to 4,294,967,295.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine