Skip to content

Commit

Permalink
Merge pull request #64 from VEAF/jtac-stop-resume
Browse files Browse the repository at this point in the history
reproduced edits by guimcdo
  • Loading branch information
ciribob authored Jun 24, 2021
2 parents 627b832 + ec0cee3 commit c48ab69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CTLD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5284,6 +5284,9 @@ function ctld.JTACAutoLase(_jtacGroupName, _laserCode, _smoke, _lock, _colour, _
--remove from smoke list
ctld.jtacSmokeMarks[_tempUnitInfo.name] = nil

-- JTAC Unit: resume his route ------------
trigger.action.groupContinueMoving(Group.getByName(_jtacGroupName))

-- remove from target list
ctld.jtacCurrentTargets[_jtacGroupName] = nil

Expand Down Expand Up @@ -5312,6 +5315,9 @@ function ctld.JTACAutoLase(_jtacGroupName, _laserCode, _smoke, _lock, _colour, _
local fullMessage = message .. '. CODE: ' .. _laserCode .. ". POSITION: " .. ctld.getPositionString(_enemyUnit)
ctld.notifyCoalition(fullMessage, 10, _jtacUnit:getCoalition(), _radio, message)

-- JTAC Unit stop his route -----------------
trigger.action.groupStopMoving(Group.getByName(_jtacGroupName)) -- stop JTAC

-- create smoke
if _smoke == true then

Expand Down

0 comments on commit c48ab69

Please sign in to comment.