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

[Trigger] Help with region triggers

Status
Not open for further replies.
Level 1
Joined
Sep 17, 2007
Messages
2
I’m making a tower defence map but I’m having a problem setting up the paving for the creeps to follow

With my current set up the first creep will follow the path, but the rest will go straight for the final destination

map2mh8.png


Map:
mapgz7.png

1: Red Spawn
2: Red Path One
3: Red Path Two
4: Red Path Three
5: Red Path Finish


Triggers:
trigger1lr2.png


trigger2jv0.png


trigger3nv5.png


trigger4ty3.png


How can I make it so all the creeps will follow the path?
 
Level 4
Joined
Jul 12, 2007
Messages
116
I don`t understand why does you have to use variables. :confused:

anyway here is your trigger:

  • Red spawn
    • Events
      • Unit - A unit enters Red Spawn <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 9 (Gray)
    • Actions
      • Unit - Order (Entering unit) to Move To (Center of Red path one <gen>)

  • Red path one
    • Events
      • Unit - A unit enters Red path one <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 9 (Gray)
    • Actions
      • Unit - Order (Entering unit) to Move To (Center of Red path two <gen>)

...
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Warlord is right.
All he did is copy the original trigger and make it leak.

And the event ''Unit enters region'' does not leak.
But the action he has does.

EDIT: Lol, I just saw why it's not working + the leak.

RedPathOne, RedPathTwo, and so on, should be Point variables, set to (Center of (Region)).

Then, destroy them with RemoveLocation.

You're currently destroying the rects, and the center of an undefined rect is considered 0,0
 
Status
Not open for further replies.
Top