Merge pull request #449 from FlightControl-Master/386-ai-designate

386 ai designate
This commit is contained in:
Sven Van de Velde 2017-04-20 20:55:45 +02:00 committed by GitHub
commit c5f64aeafc
2 changed files with 4 additions and 3 deletions

View File

@ -234,7 +234,7 @@ do -- AI_DESIGNATE
self.RecceSet = Detection:GetDetectionSetGroup()
self.Spots = {}
self:SetLaserCodes( 1113 )
self:SetLaserCodes( 1688 )
self.Detection:__Start( 2 )

View File

@ -79,8 +79,9 @@ do
self.LaserCode = LaserCode
local RecceDcsUnit = self.Recce:GetDCSObject()
self.Spot = Spot.createInfraRed( RecceDcsUnit, { x = 0, y = 2, z = 0 }, Target:GetPointVec3():AddY(1):GetVec3(), LaserCode )
self.Spot:setCode( LaserCode )
self.Spot = Spot.createInfraRed( RecceDcsUnit, { x = 0, y = 2, z = 0 }, Target:GetPointVec3():AddY(1):GetVec3() )
self.Spot = Spot.createLaser( RecceDcsUnit, { x = 0, y = 2, z = 0 }, Target:GetPointVec3():AddY(1):GetVec3(), LaserCode )
if Duration then
self.ScheduleID = self.LaseScheduler:Schedule( self, StopLase, {self}, Duration )