• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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