- Joined
- Sep 13, 2007
- Messages
- 33
Is it possible to change the Z angle of a unit (pitch roll) using triggers?
Thanks.
Thanks.
It has 180 animations, use SetUnitAnimationByIndex. 90 = straight forward. 0 = straight up? or down, can't remember. 180 = the opposite of 0.
Lol.
You can attach a model(as a special effect) to a dummy that uses the dummy.mdx model and than set the dummy unit animation (by index) to 0:180. Thus rotating it.
call AddSpecialEffectTarget("units\\human\\GryphonRider\\GryphonRider.mdl", Hero, "chest")
You sure it has to be chest?
And are you sure about the double backslashes (I don't use JASS, so I am not certain)?
Origin
Also things to note are that to make an effect move with the unit it is attached to you have to use setunitposition and not (setunitx and setunity).