Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Spinner.OnProjectile(a)
- --if not Menu.IsKeyDown(Spinner.optionKey) then return end
- if myHero and a and a.target == myHero and a.source and not Entity.IsSameTeam(myHero, a.source) then
- if Menu.GetValue(Spinner.typemove) == 0 then
- local degree = FindRotationAngle(myHero, a.source) -- угол поворота персонажа можно менять
- if NPC.FindFacingNPC(myHero) == a.source then return end
- local timign = 0.1 -- повторно задать угол поворота можно менять
- local tick = 0
- if tick <= GameRules.GetGameTime() then
- MyQueue:newOrderToQueue(Spinner.NeedMove, {myHero , Spinner.PositionAngle(myHero,degree,1)}, 2); -- ТОЖЕ САМОЕ ЧТО И ФУНКЦИЯ НИЖЕ. ВЫПОЛНИТСЯ ЧЕРЕЗ 2 СЕКУНДЫ
- -- Spinner.NeedMove(myHero , Spinner.PositionAngle(myHero,degree,1))
- tick = GameRules.GetGameTime()
- end
- end
- if Menu.GetValue(Spinner.typemove) == 1 then
- local degree = FindRotationAngle(myHero, a.source)
- if NPC.FindFacingNPC(myHero) == a.source then return end
- Log.Write(degree:__tostring())
- local timign = 0.1 -- повторно задать угол поворота можно менять
- if tick <= GameRules.GetGameTime() then
- MyQueue:newOrderToQueue(Spinner.NeedMove, {myHero , Spinner.PositionAngle(myHero,degree,1)}, 2); -- ТОЖЕ САМОЕ ЧТО И ФУНКЦИЯ НИЖЕ. ВЫПОЛНИТСЯ ЧЕРЕЗ 2 СЕКУНДЫ
- tick = GameRules.GetGameTime()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement