Added workaround for PatrolRoute problem

Units may stay on initial point and cycle endless if Delay is smaller then 2.
This commit is contained in:
kaltokri 2024-02-27 16:38:20 +01:00
parent 1f9725530f
commit f2e22579ed

View File

@ -2173,7 +2173,7 @@ do -- Patrol methods
local Waypoint = Waypoints[#Waypoints]
PatrolGroup:SetTaskWaypoint( Waypoint, TaskRoute ) -- Set for the given Route at Waypoint 2 the TaskRouteToZone.
PatrolGroup:Route( Waypoints ) -- Move after a random seconds to the Route. See the Route method for details.
PatrolGroup:Route( Waypoints, 2 ) -- Move after a random seconds to the Route. See the Route method for details.
end
end