Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. function Spinner.OnProjectile(a)
  2. --if not Menu.IsKeyDown(Spinner.optionKey) then return end
  3.  
  4. if myHero and a and a.target == myHero and a.source and not Entity.IsSameTeam(myHero, a.source) then
  5. if Menu.GetValue(Spinner.typemove) == 0 then
  6. local degree = FindRotationAngle(myHero, a.source) -- угол поворота персонажа можно менять
  7. if NPC.FindFacingNPC(myHero) == a.source then return end
  8. local timign = 0.1 -- повторно задать угол поворота можно менять
  9. local tick = 0
  10. if tick <= GameRules.GetGameTime() then
  11.  
  12.  
  13. MyQueue:newOrderToQueue(Spinner.NeedMove, {myHero , Spinner.PositionAngle(myHero,degree,1)}, 2); -- ТОЖЕ САМОЕ ЧТО И ФУНКЦИЯ НИЖЕ. ВЫПОЛНИТСЯ ЧЕРЕЗ 2 СЕКУНДЫ
  14.  
  15.  
  16. -- Spinner.NeedMove(myHero , Spinner.PositionAngle(myHero,degree,1))
  17. tick = GameRules.GetGameTime()
  18. end
  19. end
  20. if Menu.GetValue(Spinner.typemove) == 1 then
  21. local degree = FindRotationAngle(myHero, a.source)
  22. if NPC.FindFacingNPC(myHero) == a.source then return end
  23. Log.Write(degree:__tostring())
  24. local timign = 0.1 -- повторно задать угол поворота можно менять
  25. if tick <= GameRules.GetGameTime() then
  26. MyQueue:newOrderToQueue(Spinner.NeedMove, {myHero , Spinner.PositionAngle(myHero,degree,1)}, 2); -- ТОЖЕ САМОЕ ЧТО И ФУНКЦИЯ НИЖЕ. ВЫПОЛНИТСЯ ЧЕРЕЗ 2 СЕКУНДЫ
  27. tick = GameRules.GetGameTime()
  28. end
  29. end
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement