Laser fix!

This commit is contained in:
FlightControl 2017-04-20 20:55:11 +02:00
parent 5b901babfa
commit 7e55dd8a7c
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -79,8 +79,9 @@ do
self.LaserCode = LaserCode self.LaserCode = LaserCode
local RecceDcsUnit = self.Recce:GetDCSObject() 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 if Duration then
self.ScheduleID = self.LaseScheduler:Schedule( self, StopLase, {self}, Duration ) self.ScheduleID = self.LaseScheduler:Schedule( self, StopLase, {self}, Duration )