• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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,450
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

Last edited:
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.
Back
Top