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

Adding Circles to Regions

Status
Not open for further replies.
Level 12
Joined
May 20, 2009
Messages
822
I don't think circular regions exist in WarCraft III. You can determine if something comes within so much of a circular range of a point, but that's as close as you'll get and I think it has some major limitations.

I THINK You can also just add points into a circular shape and then make a region out of them. I think...I don't know if that works with more then just 4 points.
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
I don't think circular regions exist in WarCraft III. You can determine if something comes within so much of a circular range of a point, but that's as close as you'll get and I think it has some major limitations.

This would work. Then in your events that use enter/leave region and it's for the circular region, you check to make sure that whatever is entering your circular region is within X range of that point.

So you'd need a location and a region, along with a trigger condition specific to that location/circle/region.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
If you want to use the functionality of regions, you can approximate a circle of rectangles. The smallest cells of regions are 32*32. But that may be unperformant to set up or include some nasty maths. What do you exactly want to do? Maybe region is not the best solution for that.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Then using a region won't help you much because you would have to adjust it onMove/periodically and removing cells does not trigger the leave event. There is no simple MoveRegion function and it would get overall expensive, imprecise and complicated. Better do what Chaosy suggested.
 
Status
Not open for further replies.
Top