Jump to content

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
Photo

[Library]SL-Aggro


  • This topic is locked This topic is locked
2 replies to this topic

#1
SxcS

SxcS

    Advanced Member

  • Contributor
  • 338 posts

SL-Aggro

 

Download:

https://raw.githubus...er/SL-Aggro.lua

 

features:

 

     Tracks:

  • aggrocount on a unit
  • attacker 
  • target

 

API:

 

-Aggro(unit,team,IsTable):

 

  • GetAggroCount()
  • GetAttacker()
  • GetTarget()

 

Examples:

 

Example 1:

require 'SL-Aggro'

Aggro(minionManager.objects,MINION_ENEMY,true)
local a = Aggro(minionManager.objects,MINION_ENEMY,true)


OnTick(function()
    print(a:GetAttacker())
    print(a:GetTarget())
    print(a:GetAggroCount())
end)

Example 2:

require 'SL-Aggro'

Aggro(myHero,myHero.team,false)
local a = Aggro(myHero,myHero.team,false)


OnTick(function()
    print(a:GetAttacker())
    print(a:GetTarget())
    print(a:GetAggroCount())
end)

  • 0

#2
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp

What kind of strange table is that 


  • 0

#3
Toshibiotro

Toshibiotro

    Lord and Saviour of GoS

  • Banned
  • PipPipPip
  • 957 posts
  • LocationThe Moon

What kind of strange table is that 

the op kind Keepo


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users