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

[JASS] Creating units in a line

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
My jass has become rusty..

I want units to be created in a line with 1500 offset of the target point.

set u = CreateUnit(p,'n000',(x+TargDist),(y+TargDist),angle2-90) creates the first unit TargDist being 1500 and angle2 AngleBetweenPoints(remLoc,CLoc) remLoc being target point and Cloc being caster point

The units to be created have to be created like this:

Code:
       [COLOR="Orange"]x[/COLOR]
        [COLOR="Orange"]x[/COLOR]
         [COLOR="Lime"]X[/COLOR]
o
lowercase x is the unit to be created, uppercase X depicts the unit which is to serve as a base to create the others by an offset of 100.

o is the target point

Hope this is understandable, if not, I'll provide further details
 
Status
Not open for further replies.
Top