Updated logic...

This commit is contained in:
FlightControl
2017-04-20 21:59:09 +02:00
parent 7e55dd8a7c
commit dbf95924eb
2 changed files with 33 additions and 8 deletions

View File

@@ -96,8 +96,12 @@ do
-- @param To
function SPOT:onafterLasing( From, Event, To )
self:__Lasing( -0.2 )
self.Spot:setPoint( self.Target:GetPointVec3():AddY(1):GetVec3() )
if self.Target:IsAlive() then
self.Spot:setPoint( self.Target:GetPointVec3():AddY(1):GetVec3() )
self:__Lasing( -0.2 )
else
self:__LaseOff( 0.2 )
end
end