Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnProcessSpell(function(Object,spellProc) --Object is a pointer to the caster of the spell; spellProc is a struct with some spell datas
- --spellProc.name = the name of the current spell cast (including autoattacks and such)
- --spellProc.windUpTime = number holding the value of the required animation time for an attack to complete
- --spellProc.animationTime = number holding the full animation time of an attack or spell (always greater than windUpTime)
- --spellProc.castSpeed = proportional to "GetAttackSpeed(myHero);", returns the speed value of the casted spell or attack.
- --spellProc.startPos.x
- --spellProc.startPos.y = returns a VECTOR holding the starting position of the spell cast (often the same as GetOrigin(Object))
- --spellProc.startPos.z
- --||||||||||||||||||||
- --spellProc.endPos.x
- --spellProc.endPos.y = returns a VECTOR holding the ending position of the spell cast (often the same as GetOrigin(Object))
- --spellProc.endPos.z
- --||||||||||||||||||||
- --spellProc.target = returns a pointer to a target if there is any (for example Ryze Q is skillshot without target, but his W does have target)
- if myher0 == Object then
- --MessageBox(0,spellProc.name,tostring(spellProc.windUpTime),0);
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement