This commit is contained in:
FlightControl
2017-03-17 13:59:19 +01:00
parent 7231492eaa
commit 3f0c983194
14 changed files with 81 additions and 70405 deletions

View File

@@ -256,12 +256,14 @@ do -- ACT_ROUTE_POINT
-- @return #boolean
function ACT_ROUTE_POINT:onfuncHasArrived( ProcessUnit )
local Distance = self.PointVec2:Get2DDistance( ProcessUnit:GetPointVec2() )
if Distance <= self.Range then
local RouteText = "You have arrived."
self:Message( RouteText )
return true
if ProcessUnit:IsAlive() then
local Distance = self.PointVec2:Get2DDistance( ProcessUnit:GetPointVec2() )
if Distance <= self.Range then
local RouteText = "You have arrived."
self:Message( RouteText )
return true
end
end
return false