HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making TheSetAngleZ function work

09-27-2008, 12:36 AM#1
BlinkBoy
I don't remenber from where I got it, but I know the author is Inframe. (I think it was from vexorian's Caster System) Anyways I've tried using it, but I'm unable to make it work.

Collapse JASS:
function UnitSetZAngle takes unit caster, integer ang returns nothing
    call SetUnitAnimationByIndex(caster,ang+90)
endfunction

I'm sure it works, I¡'ve seen vexorian using it in his Spell Factory map.

Help would be appreciated.
09-27-2008, 12:40 AM#2
PurplePoot
It only works on the dummy.mdx model.
09-27-2008, 12:53 AM#3
Rising_Dusk
Yeah, you need the pitch dummy model that has 180 animations corresponding to 180 degrees of pitch. I'll upload it when I get home if someone else doesn't first. (A search didn't make it obvious which thread it was in and I didn't feel like search-surfing)
09-27-2008, 01:14 AM#4
BlinkBoy
hmm, and what should I do with that dummy, to rotate a certain unit for example?

EDIT: Nvm, found the model and how to implement it.

Now a new simple question, I have the model and I attach the real model to it, yet I would like to know how to make the attachment play certain animation?
09-27-2008, 01:21 AM#5
PurplePoot
You don't, in my experience.

If you desperately need animations, you may very well need to make a ton of units all at different tilts, or, more feasible, just drop the idea.