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.

Generated on
©2016 - Eluna Lua Engine