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

Special effect in front of unit

You cannot. Effects created on a unit cannot have their positions changed.
The best you can do is create an effect at location instead of on unit. You can use unit's position as base and offset the effects location (x, y, z coordinates) to kind of get the area in front of its face.
It has two major drawbacks, though:
  • The x/y/z offset is different from model to model and must be determined manually via trial and error. There is no convenient way which would give you the position of, for example, "head" attachment point.
  • It will look strange during certain animations the model will be playing. For example Blood Mage moves his head a lot during his various attack/spell animations. As there is no way to get "head" attachment point's coordinates, it will be very hard for you to reliably calculate the offset yourself.
 
You cannot. Effects created on a unit cannot have their positions changed.
The best you can do is create an effect at location instead of on unit. You can use unit's position as base and offset the effects location (x, y, z coordinates) to kind of get the area in front of its face.
It has two major drawbacks, though:
  • The x/y/z offset is different from model to model and must be determined manually via trial and error. There is no convenient way which would give you the position of, for example, "head" attachment point.
  • It will look strange during certain animations the model will be playing. For example Blood Mage moves his head a lot during his various attack/spell animations. As there is no way to get "head" attachment point's coordinates, it will be very hard for you to reliably calculate the offset yourself.
This is exactly what doesn't work. I can create a dummy unit using coordinates right in front of the unit's face, but when I do the same with a special effect, it doesn't display.
 
Back
Top