• 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 can I use dummy's SetAnimationByIndex correctly?

Status
Not open for further replies.

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
I get this dummy.mdx from a spell named RocketSphere by tank-commander. I have searched around and got that to create a proper missile arch we need this dummy unit. But I don't know how to use the special ability of that dummy unit, can someone show me how?
answer
JASS:
Custom script: call SetUnitAnimationByIndex(udg_Unit, 0-181)
 

Attachments

  • dummy.mdx
    34.2 KB · Views: 41
Last edited:
Level 19
Joined
Mar 18, 2012
Messages
1,716
Yes each integer represents an angle, but I think that's a very specific dummy file and not the standart one used.

Normally I would recommend to use the resource Dummy. It sorts dummy units by angle and returns the closest stored towards the desired angle. It's currently not available on THW, but if you really want it, you'll find the library in my spells: FrozenOrb, Meat Hook, Simple Spell Pack and Armageddon.
 
Status
Not open for further replies.
Top