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

Spell Target Unit

Status
Not open for further replies.
They are not the same. For abilites that have point as target and not an object GetUnitLoc(GetSpellTargetUnit()) will return centre of map.

If you cast an ability on an object you could think they should return the same, but they don't. It would be luck if they would be equal. (I made tests)
Seems like it depends of the coordinates of your cast-click. (you don't have to cover the exact unit-coordinates to make it a target, there is a certain scope as we all know)

So if a unit is a target GetSpellTargetLoc() and GetUnitLoc(GetSpellTargetUnit()) are similar, but not the same.
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
When used in the wrong place this can make model size relevant for gameplay, apart from the visual/clickability relevance.
 
Status
Not open for further replies.
Top