This commit is contained in:
FlightControl
2017-04-23 08:48:30 +02:00
parent e80b90fcf6
commit 7961ae90f4
3 changed files with 156 additions and 64 deletions

View File

@@ -196,9 +196,9 @@ do
function SPOT:onafterLasing( From, Event, To )
if self.Target:IsAlive() then
self.SpotIR:setPoint( self.Target:GetPointVec3():AddY(1):GetVec3() )
self.SpotIR:setPoint( self.Target:GetPointVec3():AddY(1):AddY(math.random(-100,100)/100):AddX(math.random(-100,100)/100):GetVec3() )
self.SpotLaser:setPoint( self.Target:GetPointVec3():AddY(1):GetVec3() )
self:__Lasing( -0.2 )
self:__Lasing( -0.05 )
else
self:E( { "Target is not alive", self.Target:IsAlive() } )
end