• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Spawning units in circle arround area

Status
Not open for further replies.
Level 2
Joined
Apr 25, 2015
Messages
9
Hi people! I'm making a map on WE and i wanted to make a spell that would target an area, and spawn units forming a circle arround the targeted area's center using a trigger. Upon using the spell, correct units are created (right amoount too), but i cant figure out how to make them circle.
The aim is something like Furion's Sprout for Dota players.
If someone has an idea, a hint or even a full trigger...
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
You will require a lot of location removes but this might work:
create a loop from 0 to ... (the amount of units that form the circle)
inside the loop create a new location with polar offset from another location. Use the distance that you want the units to have from the center and use (360/(amount of units) X integerA) as the degree.
 
Level 2
Joined
Apr 25, 2015
Messages
9
Thanks you so much!! The spell works perfectly, i only have to make some nice special effects.
 
Status
Not open for further replies.
Top