Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
i need some triggers, best JASS functions.
1. how to change attack animation (not missile)? (from i.e. Attack 1, 2, 3 to AttackRange 1, 2, 3)
2. how to change attack type?
3. and, finally, how to change missile model?
1. You need a model with a set of animations with the 'alternate' tag. And then to switch to the alternate set of animations just use:
JASS:
function foo takes unit u returns nothing
call AddUnitAnimationProperties(u, "alternate", true)
endfunction
2. You can't directly do this in-game with functions. You could make a different unit type with the alternate attack type and when u need to switch replace the unit with the other unit type.
3. Like with 2, this can't be done with functions in-game. A workaround is the same as the one for number 2.
3. can be done via adding an orb based spell to the unit with no affect and just different art.
If you want to change it, simply remove that orb ability and add another.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.