Hi I'm actually creating a Yasuo auto Q script if an enemy is detected around the Q's distance and I'm stucked because I already maximized the search engine of google and this site but I still don't know how to get objects around the player for specific distance. Please help. Thanks
Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.Login to Account Create an Account
How to get objects around player radius
Started By
thevinsmarciano1
, Apr 14 2018 09:05
#1
Posted 14 April 2018 - 09:05
#2
Posted 14 April 2018 - 09:45
you could loop through all objects and check the distance :V
#3
Posted 14 April 2018 - 09:47
for _, enemy in pairs(GetEnemyHeroes()) do if ValidTarget(enemy, 470) then -- 470 is range -- add there Q cast end endIf you want to check for minions, then:
for _, minion in pairs(minionManager.objects) do if GetTeam(minion) == MINION_ENEMY then if ValidTarget(minion, 470) then -- 470 is range -- add there Q cast end end endI specially insert a little bit smaller range than it's normally (475), because if you add exactly same range as it's have, then you will get worse hitchance.
Edited by puszyy, 14 April 2018 - 09:59 .
#4
Posted 14 April 2018 - 10:47
for _, enemy in pairs(GetEnemyHeroes()) do if ValidTarget(enemy, 470) then -- 470 is range -- add there Q cast end endIf you want to check for minions, then:
for _, minion in pairs(minionManager.objects) do if GetTeam(minion) == MINION_ENEMY then if ValidTarget(minion, 470) then -- 470 is range -- add there Q cast end end endI specially insert a little bit smaller range than it's normally (475), because if you add exactly same range as it's have, then you will get worse hitchance.
Is this a "for-loop" syntax that I can use inside OnDraw ? I'm new to this language! OMG thank you! I can't see the minionManager.objects in the API's though?
#5
Posted 14 April 2018 - 10:59
Yes, you can use it in OnDraw, just replace Q cast lines with DrawCircle.Is this a "for-loop" syntax that I can use inside OnDraw ? I'm new to this language! OMG thank you! I can't see the minionManager.objects in the API's though?
minionManager.objects is from Inspired library (I think lol )
Im amateur in scripting, but learned a lot by fixing outdated scripts and improving them for my own
I recommend you this form of study
Greetings.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users