• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Model animations and stuff

Status
Not open for further replies.
I have absolutely no idea what you're asking, but I'm pretty sure it's in the wrong section. Oh, and you cannot bump a thread unless at least 2 days have passed, which haven't.
 
That script?

JASS:
SetUnitAnimationByIndex (Unit, Index #)

You can add custom cripts in the general section of the triggers.
 
I get an error from that. do i put it in actions? I'm so confused...

Okay, say my unit was call "Worm Archer" and I wanted him to do the Attack - 1 animations, how would i do that with the script?

Yes, it's an action. If you using GUI i think you actuyally can't put it anywhere.

Try something like that:

  • Events
    • Unit - A unit is attacked
  • Conditions
    • Unit Comparisson - Atacking unit equal to worm archer
  • Actions
    • Custom Script - SetUnitAnimationByIndex (GetAttacker(), Index #)
Where you replace # by the integer that play the unit's desired anymation.
 
Yes, it's an action. If you using GUI i think you actuyally can't put it anywhere.

Try something like that:

  • Events
    • Unit - A unit is attacked
  • Conditions
    • Unit Comparisson - Atacking unit equal to worm archer
  • Actions
    • Custom Script - SetUnitAnimationByIndex (GetAttacker(), Index #)
Where you replace # by the integer that play the unit's desired anymation.
I don't think there is cause I haven't found it but is there "Unit attacks" cause the "Unit - A unit is attacked" thing sounds more like its a unit being attack and it animates.

I get this error.
JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    SetUnitAnimationByIndex (GetAttacker(), Gold)
 
Status
Not open for further replies.
Back
Top