Skip to main content

AIBaseClient : AttackableUnit

Inherited from GameObject and AttackableUnit class.

Properties​

spellBook: SpellBook​

buffManager: BuffManager​

activeSpell: CastArgs​

isZombie: boolean​

charName: string​

actionState: number - integer​

actionState2: number - integer​

isMoving: boolean​

path: Vector3[] - std::vector<Vector3>​

nextWaypointIndex: number - integer​

petOwner: AIBaseClient​

attackDelay: number​

attackCastDelay: number​

isClone: boolean​

dashSpeed: number​

isDashing: boolean​

serverPosition: Vector3​

isMagicImmune: boolean​

isPhysicalImmune: boolean​

isUnstoppable: boolean​

totalHealth: number​

missingHealth: number​

totalMaxHealth: number​

healthMaxFromStats: number​

totalShield: number​

canAttack: boolean​

canCrit: boolean​

canCast: boolean​

canMove: boolean​

isSlowed: boolean​

isImmovable: boolean​

isStealthed: boolean​

isTaunted: boolean​

isFeared: boolean​

isFleeing: boolean​

isSupressed: boolean​

isAsleep: boolean​

isGhosted: boolean​

isCharmed: boolean​

isDisarmed: boolean​

isRooted: boolean​

isSilenced: boolean​

isStunned: boolean​

hasAABlockingBuff: boolean​

isMelee: boolean​

isRanged: boolean​

hash: number - integer​

totalBaseAttackDamage: number​

totalBonusAttackDamage: number​

totalAttackDamage: number​

totalAbilityPower: number​

isCasting: boolean​

isLaneMinion: boolean​

isSiegeMinion: boolean​

isSuperMinion: boolean​

isCasterMinion: boolean​

isMeleeMinion: boolean​

isPet: boolean​

isWard: boolean​

isWardNoBlue: boolean​

isTrap: boolean​

isPlant: boolean​

isLargeMonster: boolean​

isBaron: boolean​

isDragon: boolean​

isEpicMonster: boolean​

isSmiteMonster: boolean​

charIntermediate: CharIntermediate​

gold: number​

goldTotal: number​

minimumGold: number​

Functions​

IsBot​

AIBaseClient:IsBot() → boolean

Returns the entity is a bot.


GetDirection​

AIBaseClient:GetDirection() → Vector3

Returns the entity's direction vector.


GetPetHandleSize​

AIBaseClient:GetPetHandleSize() → number

Returns the size of entity's pet array. Entities may have multiple pets. Index starts from 0.


GetPetHandleByIndex​

AIBaseClient:GetPetHandleByIndex() → AIBaseClient

Returns entity's pet handle by index. Entities may have multiple pets. Index starts from 0.

Example: Get first pet
local petHandleSize = Game.localPlayer:GetPetHandleSize()
if petHandleSize > 0 then
for i=0, petHandleSize-1 do
local petHandle = Game.localPlayer:GetPetHandleByIndex(i)
local pet = petHandle and ObjectManager.ResolveHandle(petHandle)
if pet and pet:IsValid() then
print(pet:GetUniqueName())
end
end
end

GetTarget​

AIBaseClient:GetTarget() → AttackableUnit

Returns the entity's active target.


GetWayPoint​

AIBaseClient:GetWayPoint() → Vector3

Returns the entity's last waypoint.


GetRemainingPath2D​

AIBaseClient:GetRemainingPath2D() → Vector2[] - std::vector<Vector2>

Returns the entity's remaining path array.


GetSpellEntry​

AIBaseClient:GetSpellEntry(
  slot: SpellSlot - integer0-64
) → SpellBookEntry

ArgumentTypeDescription
slotSpellSlot - integer0-64SpellSlot enum.

Returns a SpellBookEntry.


GetSpellSlot​

AIBaseClient:GetSpellSlot( spellName: string ) → SpellSlot

ArgumentTypeDescription
spellNamestringSpell Name for finding spell.

Returns SpellSlot or SpellSlot.NullSlot.


GetSpellState​

AIBaseClient:GetSpellState(
  slot: SpellSlot - integer0-64
) → SpellState

ArgumentTypeDescription
slotSpellSlot - integer0-64SpellSlot enum.

Returns SpellState for given SpellSlot.


GetAutoAttackDamage​

AIBaseClient:GetAutoAttackDamage(
  target: AttackableUnit
) → number

ArgumentTypeDescription
targetAttackableUnitTarget.

Returns a entity's auto attack damage to target.


IsFacing​

AIBaseClient:IsFacing(
  source: AIBaseClient,
  angle: number - float,
  range: number - float
) → boolean

ArgumentTypeDescription
sourceAIBaseClientCheck from source.
anglenumber - floatCone angle.
rangenumber - floatMax check range.

Returns if entity is facing source (inside cone).


UseObject​

AIBaseClient:UseObject(
  target: AttackableUnit
) → void

ArgumentTypeDescription
targetAttackableUnitTarget to use.

Use an object like lantern etc.


HasBuffOfType​

AIBaseClient:HasBuffOfType(
  type: BuffType - integer
) → boolean

ArgumentTypeDescription
typeBuffType - integerBuffType enum.

Returns if has buff of type.


IsCloneFrom​

AIBaseClient:IsCloneFrom(
  source: AIBaseClient
) → boolean

ArgumentTypeDescription
sourceAIBaseClientSource of clone.

Returns if entity is a clone from source entity.


CanUseSpell​

AIBaseClient:CanUseSpell( slot: SpellSot - integer0-64 ) → boolean

ArgumentTypeDescription
slotSpellSot - integer0-64SpellSlot enum.

Returns if entity can use spell of given slot.


GetRealHealth​

AIBaseClient:GetRealHealth(
  msTime: number - float,
  type: DamageType
) → number

ArgumentTypeDescription
msTimenumber - floatTime to predict HPRegenRate.
typeDamageTypeDamageType enum.

Returns entity real health include Shields and Blitzcrank's passive.


GetBuff​

AIBaseClient:GetBuff( index: Integer ) → Buff

ArgumentTypeDescription
indexIntegerBuff array index.

Returns a buff at index.


FindBuff​

AIBaseClient:FindBuff( hash: number - Integer ) → Buff

ArgumentTypeDescription
hashnumber - IntegerBuff name Hash

Returns Buff find by fnv_hash(name).


GetBuffStacks​

AIBaseClient:GetBuffStacks( hash: number - Integer ) → number

ArgumentTypeDescription
hashnumber - IntegerBuff name Hash

Returns Buff stacks find by fnv_hash(name).


GetAutoAttackRange​

AIBaseClient:GetAutoAttackRange(
  target: AttackableUnit
) → number

ArgumentTypeDescription
targetAttackableUnitTarget could be null.

Returns real auto attack range (worked for Azir, Aphelios, Caitlyn and most heroes).


IsPlayingAnimation​

AIBaseClient:IsPlayingAnimation( animationHash: number ) → boolean

ArgumentTypeDescription
animationHashnumberAnimation hash. Can be taken with Game.fnvhash(animationName).

Returns whether entity is playing specific animation.


HasTimeRemainingForAnimation​

AIBaseClient:HasTimeRemainingForAnimation( animationHash: number, remainingTime: number ) → boolean

ArgumentTypeDescription
animationHashnumberAnimation hash. Can be taken with Game.fnvhash(animationName).
remainingTimenumberRemaining time to check.

Returns whether entity is still have given remaining time for certain playing animation.


GetGrassGroupToIgnore​

AIBaseClient:GetGrassGroupToIgnore() → number

Returns current grass group ID.


IsRecalling​

AIBaseClient:IsRecalling() → boolean

Returns if entity is recalling.


FindSafeSpot​

AIBaseClient:FindSafeSpot(
  position: Vector3
) → Vector3

ArgumentTypeDescription
positionVector3nil

Finds safe spot using game function.


GetNavConditionFlags​

AIBaseClient:GetNavConditionFlags() → number

Returns TeamFlag / NavConditionFlag.


IsCastingInterruptibleSpell​

AIBaseClient:IsCastingInterruptibleSpell() → number - integer

Returns whether enemy is casting or channeling interruptible spell or not.

tip

0 - Not casting. 1 - Medium danger level spell. 2 - Dangerous spell.


IsInvulnerable​

AIBaseClient:IsInvulnerable( source: number ) → boolean

ArgumentTypeDescription
sourcenumberEntity to check invulnerability against

Returns whether entity is invulnerable towards damage from another entity (source).