• 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.

How do I call animations for attachments?

Status
Not open for further replies.
Level 30
Joined
Jul 23, 2009
Messages
1,033
So I have made a weapon attachment.

When the attachment is held in the right hand it just normal playing the stand animation. I have made an animation that makes the model standing still where it fits for the left hand but I don't know how make the spell call the attachment's stand alternate animation.

Isn't this what it's supposed to be?

attachment.php
 

Attachments

  • temp.png
    temp.png
    10.9 KB · Views: 361
Level 9
Joined
Aug 7, 2009
Messages
380
What actually your spell will do? does it create a new unit? or just use the ability and give that unit the attachment? If, you create new unit, animation won't effect to the last created unit. But you can play animation with trigger, why not?, good luck
 
Level 30
Joined
Jul 23, 2009
Messages
1,033
Nono here's how I mean: A unit uses an item (a weapon) and then it casts the item's click ability wich triggers a spell that gives this passive spell to the unit manipulating the item. This passive spell has a visible model effect (weapon attachment" and I wan't this spell to call the weapon's alternative animation set.
 
Level 11
Joined
Apr 28, 2008
Messages
696
Can't be done, sorry, you need model editing. :/
You can't generally play alternative variations of a special effect. Animation names' field refers to the bearer of the item, not the effect.

Thats not correct. You can effect the played animations of an attachment. But not in the way like units or destructable ones. You have to change the field in the unit editor:

Grafik - Benötigte Animations-Namen-Anhänge (uaap)
(don't know the name in english, but it should be something like: Grafics - required animation names - attachments)

By adding a string here, you will force the attachments attached to the unit to play those animations, or at least those, that come closest to the name.

For Darkwind RPG I created armorpieces that have different variations in one model. Every variation is shown in its own animation. So I can set which variation of the attachment I want to have shown on the unit. I used that to have male and female versions of armor.
 
Level 30
Joined
Jul 23, 2009
Messages
1,033
All it does now is itrandomly swaps between the animation tags :/ I made and animation named "stand Shield-Left" and I set the required animation names - attachments to "Shield Left" (also tried stand shield-left here) but it just randomly switch from the normal stand animation and the Shield-Left stand animation
 
Level 11
Joined
Apr 28, 2008
Messages
696
"Shield" is not a valid tag. Neither anything special letters like -;:. etc. Use f.e. "Stand, One". The , seperates two tags from eachother. I use "Stand" for the male and "Stand, Alternate" for the female version of an amorpiece. And for me it works just fine.
 
Level 30
Joined
Jul 23, 2009
Messages
1,033
Shouldn't it be possible to change the unit's required animation names - attachments with triggers in-game too? as it works for the unit's required animation names if you use this script:

Set b = True
Set u = (Triggering unit)
Set s = lumber
Custom script: call AddUnitAnimationProperties(udg_u, udg_s, udg_b)
 
Level 11
Joined
Apr 28, 2008
Messages
696
That script will only add an animation tag(lumber) that effects the animations of the unit(Triggering Unit) it is added to. Not the attachments.
 
Status
Not open for further replies.
Top