• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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