How to Order a Unit to face 270 deg?

panzer

New Member
Reaction score
0
Hi everyone!

I don't know how to order the entering Units (to a region) to face 270 deg.

I know how to order them to enter the region i want them to enter but i fail to make them stand 270 deg. :(

One more thing, once all the units are trained in (baracks) and enter the region i want them to, then how do i make them attack my base

Thanks :D
 

Shura

New Member
Reaction score
45
Use the actions
Trigger:
  • Actions
    • Set TempPoint = (Position of (Entering unit))
    • Unit - Move (Entering unit) instantly to TempPoint, facing 270.00 degrees
    • Custom script: call RemoveLocation (udg_TempPoint)
 

Zalinian

New Member
Reaction score
0
JASS:
call SetUnitFacing( 'unit', 270.00)

or
Trigger:
  • Custom Script: call SetUnitFacing( 'unit', 270.00)


For the attack you can use a Unit Group - Issue Order Targeting a Unit/Point, and use attack-move.

ex:
Trigger:
  • Unit Group - Order (Your Group of Units) to Attack-Move To (Center of (Your Base Area))
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
JASS:
call SetUnitFacing( 'unit', 270.00)

or
Trigger:
  • Custom Script: call SetUnitFacing( 'unit', 270.00)


For the attack you can use a Unit Group - Issue Order Targeting a Unit/Point, and use attack-move.

ex:
Trigger:
  • Unit Group - Order (Your Group of Units) to Attack-Move To (Center of (Your Base Area))

The first answer is better
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
Shura's example huh ? "move" for what ?

Unit - Make Unit Face Angle
Trigger:
  • Unit - Make (Entering unit) face 270.00 over 0.00 seconds
 

Dirac

22710180
Reaction score
147
The first answer is better

Actually the first answer is wrong, he dosnt want to move units inside a region, he wants units that enter a region to face 270, use Tom_Kazansky reply. If units wont do it, you should order em to stop and then to face 270
 

HydraRancher

Truth begins in lies
Reaction score
197
Actually the first answer is wrong, he dosnt want to move units inside a region, he wants units that enter a region to face 270, use Tom_Kazansky reply. If units wont do it, you should order em to stop and then to face 270

If you acutally read Shura's code, it is made to move the unit to its own position in order to make the unit face an angle, the conflict has arose as the thread maker, did not specify what he exactly wanted.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top