From cdad3bd058b08ae9ae636a9c9b748aab575c8ee7 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 24 Apr 2025 14:48:12 +0200 Subject: [PATCH] #PLAYERTASK - make an existing marker move with the group if the group is moving around --- Moose Development/Moose/Ops/PlayerTask.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/PlayerTask.lua b/Moose Development/Moose/Ops/PlayerTask.lua index 74d53667d..8c6361a48 100644 --- a/Moose Development/Moose/Ops/PlayerTask.lua +++ b/Moose Development/Moose/Ops/PlayerTask.lua @@ -98,7 +98,7 @@ PLAYERTASK = { --- PLAYERTASK class version. -- @field #string version -PLAYERTASK.version="0.1.25" +PLAYERTASK.version="0.1.26" --- Generic task condition. -- @type PLAYERTASK.Condition @@ -979,6 +979,12 @@ function PLAYERTASK:onafterStatus(From, Event, To) if status == "Stopped" then return self end + -- update marker in case target is moving + if self.TargetMarker then + local coordinate = self.Target:GetCoordinate() + self.TargetMarker:UpdateCoordinate(coordinate,0.5) + end + -- Check Target status local targetdead = false