Added GetSpeedMax function

This commit is contained in:
Frank
2018-05-21 21:43:19 +02:00
parent f7403758ce
commit 25e4d171ab
4 changed files with 53 additions and 6 deletions

View File

@@ -609,7 +609,7 @@ function AI_CARGO_APC:onafterPickup( APC, From, Event, To, Coordinate )
if Coordinate then
self.RoutePickup = true
local Waypoints = APC:TaskGroundOnRoad( Coordinate, 150, "Line abreast" )
local Waypoints = APC:TaskGroundOnRoad( Coordinate, APC:GetSpeedMax()*0.8, "Line abreast" )
local TaskFunction = APC:TaskFunction( "AI_CARGO_APC._Pickup", self )