• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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...
 
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.
 
Status
Not open for further replies.
Back
Top