HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Using xe dummy?

07-20-2009, 08:31 PM#1
Flame_Phoenix
Hi guys, I've seen some spells where models of units appear top-down (inverted) or that the dummy unit changes the axis ... I have in mind a small spell with a plane and I would to make the nose of the plain start with angle 0º and end with angle 270º (facing ground) but I don't know how to do that ... is that even possible using xe or something else?
07-20-2009, 08:50 PM#2
chobibo
IIRC, you can't change the pitch angle dynamically, you could animate the model though.
07-20-2009, 10:28 PM#3
Anitarf
Quote:
Originally Posted by chobibo
IIRC, you can't change the pitch angle dynamically, you could animate the model though.
The model is animated, we're talking about the xe dummy here. It comes with 180 animations for all pitch angles from -90 to +90 degrees and xefx has method operators for modifying the pitch angle.
07-20-2009, 10:45 PM#4
Flame_Phoenix
Quote:
The model is animated, we're talking about the xe dummy here. It comes with 180 animations for all pitch angles from -90 to +90 degrees and xefx has method operators for modifying the pitch angle.
Nice ... where can I find more information about that?
07-20-2009, 11:43 PM#5
Hans_Maulwurf
In the xefx documantation

Quote:
real zangle
----
The angle in the z-axis (inclination?), (Note: uses radians)

Example: set myfx.zangle = bj_PI/2 //Now the model will look towards the sky

Collapse JASS:
       method operator zangle takes nothing returns real
           return this.zang
       endmethod

       method operator zangle= takes real value returns nothing
        local integer i=R2I(value*bj_RADTODEG+90.5)
           set this.zang=value
           if(i>=180) then
               set i=179
           elseif(i<0) then
               set i=0
           endif
               
           call SetUnitAnimationByIndex(this.dummy, i  )
       endmethod
07-21-2009, 07:01 AM#6
chobibo
Quote:
The model is animated, we're talking about the xe dummy here. It comes with 180 animations for all pitch angles from -90 to +90 degrees and xefx has method operators for modifying the pitch angle.
I didn't know that, I haven't used xe's dummy yet, thanks for the information.
07-21-2009, 01:20 PM#7
Flame_Phoenix
Mmmmm that sounds pretty sweet. I though zangle would modify the dummies height and not the animation angle ... I have to give it a try. Thx!