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

@@ -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 )