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

spawn, then <order>

Status
Not open for further replies.
  • Trigger One: Spawning;
  • Trigger:
  • Spawning
  • Events
  • Time - Every 12.50 seconds of game time
  • Conditions
  • Actions
  • Set Point = (Center of Region)
  • Set Point2 = (Center of Region2)
  • For each (Integer A) from 1 to 5, do (Actions)
  • Loop - Actions
  • Unit - Create 1 Footman for Player 6 (Orange) at Point facing Default building facing degrees
  • Unit - Order (Last created unit) to Attack-Move To Point2
  • Custom script: call RemoveLocation(udg_Point)
  • Custom script: call RemoveLocation(udg_Point2)
  • Trigger Two: Move2;
  • Trigger:
  • Attack Move Two
  • Events
  • Unit - A unit enters Region2
  • Conditions
  • (Unit-type of (Triggering unit)) Equal to Footman
  • Actions
  • Set Point = (Center of Region3)
  • Unit - Order (Triggering unit) to Attack-Move To Point
  • Custom script: call RemoveLocation(udg_Point)
  • Trigger Three: Move Three;
  • Trigger:
  • Attack Move Three
  • Events
  • Unit - A unit enters Region3
  • Conditions
  • (Unit-type of (Triggering unit)) Equal to Footman
  • Actions
  • Set Point = (Center of Region4)
  • Unit - Order (Triggering unit) to Attack-Move To Point
  • Custom script: call RemoveLocation(udg_Point)
its a bit fucked up(i have saved in on my PC in text document)
It spawns 5 a units that will move to a region and than in another region
and there is nooned for variables for regions and than destroying it(i think that regions dont leak)
 
Level 3
Joined
Feb 24, 2008
Messages
67
how do i make it when units spawn at this certain time and then attk move or just move to a region?
:cq:

  • Melee Initialization
    • Events
      • Unit - A unit enters <Your Region Here>
    • Conditions
    • Actions
      • Unit - Order (Triggering unit) to Move To <Target Region Here>
or use this in the actions

  • Unit - Order (Triggering unit) to Attack-Move To <Target Region Here>
 
Level 24
Joined
May 9, 2007
Messages
3,563
No don't use the second one.

Use this.

  • Melee Initialization
  • Events
  • Unit - A unit enters <Your Region Here>
  • Conditions
  • Actions
  • Set Variable TempPoint = Center of targetr regoin
  • Unit - Order (Triggering unit) to Move To temppoint
  • Call Remove Location(udg_TempPoint)
Prefferably use Berzerker's
 
Status
Not open for further replies.
Top