• 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.

[Trigger] turning a unit except...

Status
Not open for further replies.
Level 5
Joined
Jun 16, 2004
Messages
108
You can fiddle around with the unit's pitch angle and roll angle in the object editor (http://puu.sh/EOGW)
If you imagine someone doing front flips or back flips, the pitch turns the unit in the same way. On the other hand, the roll will make the unit turn similarly to cartwheels.

You need to set them to negative values to see any effect. Hold shift and click the pitch/roll entries to be able to set them to negative values.

Here is an upside down footman: http://puu.sh/EOGr

The world editor does not provide a way to do this with triggers. However, if you know vJASS, the XE spell library brings support to turn special effects along the z axis like you want (http://www.wc3c.net/showthread.php?t=101150). It does not help much if you actually want the unit to be controllable though.
 
Level 5
Joined
Jun 16, 2004
Messages
108
Yes, that is actually precisely the sort of thing the XE spell library is useful for. In particular the xemissile library is intended to be used for projectiles that travel through the air similarly to wc3's unit missile attacks.

You can, of course, simply take the xe dummy unit's model and roll out your own solution if you feel like it. The dummy unit's model has around 180 animations to it, each one corresponding to a z angle. You would have to attach your missile's model as a special effect to the dummy model and set the dummy model's animation to the appropriate number to do the rotation.

I recommend simply using xemissile though.

The hive has a resource for missiles as well that seems to control arcing using the same model, viewable here: http://www.hiveworkshop.com/forums/jass-resources-412/system-missile-207854/
Have not tried it myself, though.
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
So you want a realistic-looking projectile system ?
Which the tip of the projectile will obey the rules of Projectile Motion ?

Well, if you are comparing to Rexxar's ultimate, Primal Roar, it uses a static dummy unit, therefore it can be achieved by just editing this;
Art - Maximum Pitch Angle (degrees): -90 (face down) / -270 (face up)

That's how Rexxar achieve the effect.
 
Level 24
Joined
Oct 18, 2008
Messages
942
So you want a realistic-looking projectile system ?
Which the tip of the projectile will obey the rules of Projectile Motion ?

Well, if you are comparing to Rexxar's ultimate, Primal Roar, it uses a static dummy unit, therefore it can be achieved by just editing this;
Art - Maximum Pitch Angle (degrees): -90 (face down) / -270 (face up)

That's how Rexxar achieve the effect.

kind of got told that already. thanks anyway.

did it by replacing the unit a couple times. you can consider this solved.
 
Status
Not open for further replies.
Top