Skip to content

Commit

Permalink
save player coord before taxi
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed May 2, 2024
1 parent 9d35199 commit c68194a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,14 @@ end

function AprRC.event.functions.fly(event, ...)
if event == "PLAYER_CONTROL_LOST" then
-- Save player position for right coord on taxi step
local step = {}
AprRC:SetStepCoord(step)
C_Timer.After(2, function()
if UnitOnTaxi("player") then
AprRC.isOnTaxi = true
controlLostTime = GetTime()
local step = {}
step.UseFlightPath = AprRC:FindClosestIncompleteQuest()
AprRC:SetStepCoord(step)
AprRC:NewStep(step)
end
end)
Expand Down

0 comments on commit c68194a

Please sign in to comment.