Hi, everyone.
I'm new here. And new with lua.
Some time ago I was writing few scripts for another platform. And now after a brake I ended up here. ![]()
Seems like GoS Ext overall is the best choice of all current alternative and I think I could spend some time here learning and making some stuff also.
I've started to recreate my old Ryze script. So on I've figured out how to initialize spells and how to cast them using ExternalPrediction, but encountered one problem. Code Below:
function Ryze:Combo ()
local target = GOS:GetTarget (Q.range)
if target == nil then return end
if menu.combo.q:Value () and Game.CanUseSpell (_Q) == 0 then
local qPred = Prediction:SetSpell (Q, TYPE_LINE, true)
local prediction = qPred:GetPrediction (target, myHero.pos)
if prediction and prediction.hitChance >= 0.5 and prediction:mCollision () == 0 and prediction:hCollision () == 0 then
Control.CastSpell (HK_Q, prediction.castPos)
end
end
end
Sometimes it casts Q in random direction. Are there any inaccuracies in my code or miscalculations are going from the prediction?
Any help appreciated. ![]()
Sign In
Create Account

Back to top
Report







