| 04-09-2006, 08:44 PM | #1 |
I have an animation problem, these are some of the animations on the model: stand (1,2,3) stand sneak attack (1,2) attack sneak walk walk sneak ......... ..... My problem is: The unit uses both the "sneak" animations together with the stands as standard, and I only want it to use "stand,attack,walk" as the standards. Even if I rename them "stand standard, attack standard and walk standard and then add a animation tag to the unit by triggers it still uses both of them. Same is when I apply the "sneak" animation tag, it uses both the sneak and the standard ones. |
| 04-10-2006, 12:11 AM | #2 |
Ok I think u hav asked this before rigth? anyway Ive tested this with one of my models and it works. So ur answer: If the animations hav Stand no matter what else is after that It will play it as a normal stand animation. To fix this rename that "stand sneak" to something like "sneak stand" if it doesnt work remove the stand part from the name. Now I know u cant see an animation that doesnt hav a standard name in world editor, but believe me, its there. To play those ghost animations u cant use the trigger "Play unit animation" u need to use jass or use a custom script. whatever u chose u need to tipe something like this: JASS:call SetUnitAnimationByIndex(gg_unit_hfoo_0000,13) -gg_unit_hfoo_0000 is the unit u want to play the anim(in this case its a unit from my map but u can also use a variable) -13 is the number of the animation, begining at 0: So lets say a unit has the following anims: stand 1 stand 2 stand 3 If I write 0 intead of 13 it will play "stand 1" anim, if I write 2 it will play "stand 3". U can see the order of animations in "warcraft 3 viewer" wich is a very well known tool. If u need help with jass or custom scripts u can ask here at the forums or u can ask me too(but Im really very noob at jass :p ) |
| 04-10-2006, 08:29 AM | #3 |
I suspect you should use a tag the game recognises such as alternate... I was always under the impression that non-standard tags should work, but it seems that is not the case at all. |
| 04-10-2006, 08:39 AM | #4 |
well I dont quite understand cause the demon hunter has some animations named "Stand Alternate.. Walk.... and so on" and it works for him to just use metamorphis. So why wont it work if I add the "Alternate" animation tag on my unit? Trigger: Animation - Add the alternate animation tag to No unitAlso how does that function work? does it just play the animation, does it play it in loops or does it make it the standard animation? (and btw I have no problem with jass) |
| 04-10-2006, 08:56 AM | #5 |
That function adds an animation tag to a unit; so it'll use, in that example, the sequences with the "alternate" tag instead of those without. Basically, it allows you to use different animation "sets" on the one model. Like the demon hunter and metamorphosis, yes, but also burrowed crypt fiends, submerged naga, locusty crypt lord... As far as I can see, the game is ignoring the presence of the "sneak" tag in your sequences because it's not a standard tag; thus I recommend replacing it with "alternate" so it will work. |
| 04-10-2006, 09:10 AM | #6 |
Yeah I had made an backup with the sneaks renamed to alternate incase, I will test it now. EDIT: Ok it seems as I removed the sneak animations cause they werent really needed. but anyway, I have 2 sets of "extra animations" so how would I rename the others? Alternate1? EDIT2: The unit has another animation, Special Attk 1. How do I call it? setting its animation to Special Attk 1 doesnt work. EDIT3: Ok the playanimationbyindex worked, but how can I get the length of the animation? Its not one of the standards(stand,walk,attack) so I cant see it in the WE. BAH EDIT4: Ok I managed to get the animation names. still want to know the answer on edit1 |
| 04-10-2006, 10:18 AM | #7 |
If you've got two animation sets, you can use the "gold" or "lumber" tags, maybe "Upgrade" and "first", "second" or "third". |
| 04-10-2006, 10:23 AM | #8 |
Ok, I think I got it working, ty |
| 04-10-2006, 07:36 PM | #9 |
although its not eficient u can name the non standard animation names to standard ones, then u see the length n rename them back. |
| 04-10-2006, 07:39 PM | #10 |
Yeah that is was I did :P |
