mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#PLAYERTASK - make an existing marker move with the group if the group is moving around
This commit is contained in:
parent
296d4b1e93
commit
cdad3bd058
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user