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

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

Status
Not open for further replies.
Level 4
Joined
Nov 3, 2015
Messages
47
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).
 
  • 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.)
 
Status
Not open for further replies.
Back
Top