From 7e55dd8a7c96a853b2bf398faed5f31bd1e0e97f Mon Sep 17 00:00:00 2001 From: FlightControl Date: Thu, 20 Apr 2017 20:55:11 +0200 Subject: [PATCH] Laser fix! --- Moose Development/Moose/AI/AI_Designate.lua | 2 +- Moose Development/Moose/Core/Spot.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/AI/AI_Designate.lua b/Moose Development/Moose/AI/AI_Designate.lua index 49244c83e..e1aa370f9 100644 --- a/Moose Development/Moose/AI/AI_Designate.lua +++ b/Moose Development/Moose/AI/AI_Designate.lua @@ -234,7 +234,7 @@ do -- AI_DESIGNATE self.RecceSet = Detection:GetDetectionSetGroup() self.Spots = {} - self:SetLaserCodes( 1113 ) + self:SetLaserCodes( 1688 ) self.Detection:__Start( 2 ) diff --git a/Moose Development/Moose/Core/Spot.lua b/Moose Development/Moose/Core/Spot.lua index 881046697..fff6c5fdd 100644 --- a/Moose Development/Moose/Core/Spot.lua +++ b/Moose Development/Moose/Core/Spot.lua @@ -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 )