Warcraft III resources & community, 2003–2006 · archived

Unit Animations

21 posts
#16
no, he hasn't tried it as far as we know. it doesn't matter which of those events he uses it should be casting unit, not triggering unit.
#17
Xeridanusno, he hasn't tried it as far as we know. it doesn't matter which of those events he uses it should be casting unit, not triggering unit.


They does the same, except that triggering unit is faster, so he shouldn't use casting unit http://www.wc3jass.com/viewtopic.php?t=2513.

And don't speak of stuff you know nothing about, he should use the event I pointed out, because the other one can because it triggers before the spell is cast (guess why it's called begins casting?) so you can get the effects without spending mana and cooldown.
#18
fair enough. but thats not going to make that much difference.
#19
Function or event?

Event makes a clearly difference, if I can keep casting a spell without spending mana and cooldown it would destroy balance.

GetTriggerUnit is better, it's not that much faster, but if you're using it a lot it is better the other way. And GetTriggerUnit can be used after waits, GetSpellAbilityUnit can not (well, it can, but it'll return null)
#20
Are there any other unit references that work after waits?
#21
Chuckle BrotherAre there any other unit references that work after waits?


I'm not sure, I always store them in locals to prevent using unneeded memory by calling them multiple times.

But all the GetSpellAbility* functions does not work after waits.