• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Stop units from going back when ordered?

Status
Not open for further replies.
Level 4
Joined
Aug 12, 2004
Messages
76
I am currently making a defense game. However, even though I put ignore guard positions and ordered the units to attack a certain point, after attacking a bit, the units return to where they spawned. Is there a way to fix this?
 
These what you called "excess units". Try removing them after their target is destroyed or create a 1 second periodic trigger in which it will order the units to prevent them from going back.
 
Err let me rephrase my question.

Here is what I want to do.

Spawn a unit at Point A.

Make the units attack all the way to Point B.


However, here arises a problem.

The spawned unit, after reaching halfway by meeting some resistance, say a hero, after attacking a while, returns back to the spawn point A.

Is there a way to stop this from happening?
 
All I put for the trigger was


Order unit issuing a Point

And I made a unit attack-move to that point.


After being blocked once by its own unit or after engaging in combat with no other enemies in sight, the unit either stops there or goes back to its spawn point.
 
Status
Not open for further replies.
Back
Top