• 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] Triger? Spawn Units

Status
Not open for further replies.
Level 3
Joined
Mar 2, 2006
Messages
40
Wht did you post this in the JASS section. It's very simple to do with GUI trigger. Here's an example for it:
1. Make a rect with the tool palete. Name it something like spawn place.
2. Decide where will the units go attacking and make a point variable like Attack Point. Set it to the place of the attack.
3. Make a spawn trigger. For example :
Code:
Spawn
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        Unit - Create 5 Footman for Player 1 (Red) at (Center of Spawn Place <gen>) facing Attack_Point
4. Make an attack trigger. Example :
Code:
Attack
    Events
        Unit - A unit enters (Convert Spawn Place <gen> to a region)
    Conditions
    Actions
        Unit - Order (Entering unit) to Attack-Move To Attack_Point
5.enjoy :lol:

P.S. Don't ever press the Submit button twice
 
Status
Not open for further replies.
Top