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

[Solved] GUI Method of Creating Units Along a Line Between Two Regions/Points

Level 4
Joined
Nov 3, 2015
Messages
46
Hello, I'm trying to make a "Base Defense" type of map.

The enemies will spawn along either one of four diagonal lines around the base.
Instead of creating a hundred or so regions or saving a hundred or so points along those lines, is there a simpler way of doing this?

Something like "Create 1 Footman for Player 1 at (Random Point Between RegionA and RegionB)". Straight line between A and B.

Of course, GUI is a must because JASS is beyond my capabilities (I am an idiot).
 
Level 11
Joined
Nov 15, 2007
Messages
800
  • Set VariableSet Spawn_Point = (PointA offset by (Random real number between 0.00 and (Distance between PointA and PointB)) towards (Angle from PointA to PointB) degrees.)
 
Top