I was wondering if there is getHeroAttackRange() function like that
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
#1
Posted 15 December 2016 - 10:52
#2
Posted 15 December 2016 - 11:25
GetRange(unit) / unit.range
#3
Posted 15 December 2016 - 02:09
GetRange(unit) / unit.range
fast reply
#4
Posted 17 December 2016 - 07:25
to follow up on Deftsu's reply:
basic attack range works differently to spell ranges
spell range is calculated from center to center of both units' model whereas attack range is from the edge of each unit's hitbox
so your basic attack range in GoS would be calculated like:
local attackRange = GetHitBox(source) + GetRange(source)
then you would need to check if the distance to the unit minus their hitbox radius is within that range:
if GetDistance(source, target) - GetHitBox(target) < attackRange then -- Do something
Also tagged with one or more of these keywords: get, attack, range
|
Answered
Community →
Open Discussion →
GoS Internal for League of Legends (Archive) →
Support →
Answered →
Target PriorityStarted by Lamann2 , 28 Jan 2016 Attack, Priority, SelectTarget |
|
|
|
|
Community →
Open Discussion →
GoS Internal for League of Legends (Archive) →
Community Scripts →
Libraries →
GetBaseAttackSpeed() - Get hero BASIC attack speedStarted by Tiritto , 25 Aug 2015 getBaseAttackSpeedhero, basica and 5 more... |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users