From e610e0e642146d4459d0bb1fa42524f14c350e23 Mon Sep 17 00:00:00 2001 From: Applevangelist <72444570+Applevangelist@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:50:09 +0200 Subject: [PATCH] Update GRP-500 - Ground TaskRoute.lua updated --- .../GRP-500 - Ground TaskRoute.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GRP - Group Commands/GRP-500 - Ground TaskRoute/GRP-500 - Ground TaskRoute.lua b/GRP - Group Commands/GRP-500 - Ground TaskRoute/GRP-500 - Ground TaskRoute.lua index b8948304bb..3c417eff33 100644 --- a/GRP - Group Commands/GRP-500 - Ground TaskRoute/GRP-500 - Ground TaskRoute.lua +++ b/GRP - Group Commands/GRP-500 - Ground TaskRoute/GRP-500 - Ground TaskRoute.lua @@ -11,11 +11,11 @@ ToCoord = FromCoord:Translate( 1000, 180 ) RoutePoints = {} -- Create a "grount route point", which is a "point" structure that can be given as a parameter to a Task -RoutePoints[#RoutePoints+1] = FromCoord:RoutePointGround( 0 ) -RoutePoints[#RoutePoints+1] = ToCoord:RoutePointGround( 60, "Cone" ) +RoutePoints[#RoutePoints+1] = FromCoord:WaypointGround() +RoutePoints[#RoutePoints+1] = ToCoord:WaypointGround(30,"Cone") -- Create a combo task, that creates a route task to the RoutePoint RouteTask = GroundGroup:TaskRoute( RoutePoints ) -- Set the task to be executed by the GroundGroup -GroundGroup:SetTask( RouteTask, 1 ) \ No newline at end of file +GroundGroup:SetTask( RouteTask, 1 )