• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

get units by GroupEnumUnitsInRange does not match ability affect area?

Status
Not open for further replies.
Level 3
Joined
Oct 9, 2012
Messages
28
I'm making an AOE ability by using the channel ability.

In the ability setting GUI I set Area of Effect(aare) to 300, and in my JASS:
Code:
local real x = GetSpellTargetX()
local real y...

call GroupEnumUnitsInRange(mygroup, x, y, 300, Filter(function myfun))

call BJDebugMsg(I2S(CountUnitsInGroup(mygroup)))

when I test in game, GroupEnumUnitsInRange doesn't get right number of units. It seems the 300 range by JASS code is a little bit smaller than the ability image covers when casting.

What's wrong with my code? How to fix?

Thanks
 
Status
Not open for further replies.
Top