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

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