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

Moving a unit from A to B ?

Status
Not open for further replies.
Level 5
Joined
Feb 1, 2009
Messages
111
Very simple title thread but this is what I'm actually trying to do:

Unit spawns in A, I can get it to move to B with a trigger, though once it reaches B it moves to A again. I want it to stay at B until I direct it to go elsewhere.

Gameplay constants: Creep guard distance, range, and time all set to maximum.

No other triggers are affecting this units movement (since this is the only trigger in the map right now).

Any ideas ?
 
Level 5
Joined
Feb 1, 2009
Messages
111
- The unit being ordered is a Computer Player
- I disabled AI guard position with trigger as well as Gameplay constants -> guard distance/time set to maximum

I tried ordering the unit to STOP once reaching point B. The only thing that worked was 'HOLD' position but I dont want it to do that because its supposed to be guarding that area.. and if any hostile/enemy units approach they can beat it to death without it attacking back.
 
Level 10
Joined
Apr 18, 2009
Messages
601
What you'll have to do is detect when the unit spawns, then run this line:
  • AI - Ignore (Triggering unit)'s guard position
This should work. You shouldn't have to change any Gameplay Constants or anything like that.
 
Status
Not open for further replies.
Top