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

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,658
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