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

big trigger problem

Status
Not open for further replies.
Level 4
Joined
Jun 21, 2004
Messages
57
need help with a trigger...

trying to make a unit walk to a point then turn like left and then go that way..

the problem is: i make the unit walk like 1000.. when he comes to the point, he turns left and walks the rest..
like if hes walkt 600 befor he comes to the point he will walk 400the other way (
something like this icon way)
:idea: :arrow: :arrow: :arrow:
:!:
:!:
:!:
:!:
:!:
 
Level 8
Joined
Apr 3, 2004
Messages
507
If you want him to walk a total of 1000 units, you'll have to keep track of his starting point's X and Y coordinates and the coordinates of any points at which he makes a turn. Then you add them up.

You can also assign him to walk a certain distance by getting his current X and Y and ordering him to move to an offset of that point.
 
Status
Not open for further replies.
Top