Publish to master

This commit is contained in:
FlightControl
2017-04-19 19:41:26 +02:00
parent b1c7e04422
commit cb5510d047
78 changed files with 1429 additions and 49 deletions

View File

@@ -200,8 +200,13 @@ do -- AI_DESIGNATE
if SmokeUnit:IsAlive() then
local NearestRecceGroup = self.RecceSet:FindNearestGroupFromPointVec2(SmokeUnit:GetPointVec2())
if NearestRecceGroup then
local NearestRecceUnit = NearestRecceGroup:GetUnit(1)
self.Spots[Index] = NearestRecceUnit:LaseUnitOn( SmokeUnit, nil, Duration )
for UnitID, UnitData in pairs( NearestRecceGroup:GetUnits() or {} ) do
local RecceUnit = UnitData -- Wrapper.Unit#UNIT
if RecceUnit:IsLasing() == false then
self.Spots[Index] = RecceUnit:LaseUnit( SmokeUnit, nil, Duration )
break
end
end
end
end
--end