• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[script] needed some triggers

Status
Not open for further replies.
Level 2
Joined
Jan 9, 2009
Messages
7
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?
 
Level 11
Joined
Feb 22, 2006
Messages
752
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.
 
Level 2
Joined
Jan 9, 2009
Messages
7
@up: great idea.

@aznricepuff: how to add animation tag in model file? in model editor, but which function?
 
Status
Not open for further replies.
Top