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

Making Units Face A Certaion Direction

Status
Not open for further replies.
Level 7
Joined
Jun 16, 2008
Messages
327
A GUI action makes a unit turn and face a direction. It can be found in the "Units" section of the actions.

  • Unit - Make <YourUnit> <gen> face <Angle> over <Amount of seconds>
<YourUnit> = The unit you wish to face a certain angle.
<Angle> = The amount of degrees, creating the angle he will face.
<Amount of seconds> = How long it takes for him to turn and face that direction.

Notice that there are other was of making a unit face a direction.
Here are two more GUI actions that both do the job, except in different ways

  • Unit - Make <YourUnit> <gen> face <AnotherUnit> <gen> over <Amount of seconds>
This action basically makes the unit face another unit.

And,
  • Unit - Make <YourUnit> <gen> face (Center of (<YourRegion)) over <Amount of seconds>
This action basically makes the unit face a region or point in the map. You can configure the region and what point in the region he has to face.
<YourRegion> = What region or point he'll face.
 
Status
Not open for further replies.
Top