>The only thing I would change here, is chaging some globals into functions.
Hm like which ones? a function for the AOE would make sense though, i'll get to that.
>So much hybrid stuff :X
Hybrid? whats the mean lol.
Theres nothing wrong with [lJASS]GroupPickRandomUnit[/lJASS] is you really want to pick random unit.
lols.
edit. Then again your group usage sucks terribly. Thanks to Jesus4Lyf, I can now just give you a link without having to explain all this stuff again.
Thats cool.
edit2. Also you dont really have to create sounds alla time and destroy them. If you need to play many sounds of same itype at same time, you should just have some sound array for that.
edit3. Your texttag function leaks a texttag [lJASS]if u == null[/lJASS]
( Actually, Im not sure if texttags can even leak, since they act very differently from all the other handles and weird stuff like that. Havent tested that stuff. Anyways, its a easy fix with no downsides, so you should fix it indeed. )
>Theres nothing wrong with GroupPickRandomUnit is you really want to pick random unit.
Yea thats what I thought before >< I suppose i could add it back; it'd make the code shorter anyways.
>edit. Then again your group usage sucks terribly. Thanks to Jesus4Lyf, I can now just give you a link without having to explain all this stuff again.
Interesting. I'll look into that.
>edit2. Also you dont really have to create sounds alla time and destroy them. If you need to play many sounds of same itype at same time, you should just have some sound array for that.
I don't get what you mean. Example please.
>edit3. Your texttag function leaks a texttag if u == null
( Actually, Im not sure if texttags can even leak, since they act very differently from all the other handles and weird stuff like that. Havent tested that stuff. Anyways, its a easy fix with no downsides, so you should fix it indeed. )
Bump.
The terrible group usage is fixed now, I think. ><
Can someone verify that the method for setting .randomu to a random unit is correct? Just want to make sure.
Fixed the texttag leak if [lJASS]u==null[/lJASS]
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!