Facing Angle JASS help

naughty

New Member
Reaction score
12
Is there any way by using jass codes to only make a unit face a point without interrupting orders? Today i attacked this forum with questions :D
 

Exide

I am amazingly focused right now!
Reaction score
448
Is there any way by using jass codes to only make a unit face a point without interrupting orders? Today i attacked this forum with questions :D

I don't have WE or JassCraft with me, but if I remember correctly the name of the function is:
JASS:
SetUnitFacing(whichunit, real value)


Don't know if it interupts any current orders or not.


However you can move a unit without interupting its command:
JASS:
            call SetUnitX(u,x)
            call SetUnitY(u,y)

Consolation prize? :p
 

Romek

Super Moderator
Reaction score
964
I don't see how you could've set a unit's facing whilst interrupting orders. :p
 

Romek

Super Moderator
Reaction score
964
Alternatively, you could've used the GUI actions:
Trigger:
  • Actions
    • Unit - Make (Last created unit) face (Last created unit) over 0.00 seconds
    • Unit - Make (Last created unit) face (Center of (Playable map area)) over 0.00 seconds
    • Unit - Make (Last created unit) face Default building facing (270.0) over 0.00 seconds

Which seem somewhat more logical to use. :p
 

naughty

New Member
Reaction score
12
Alternatively, you could've used the GUI actions:
Trigger:
  • Actions
    • Unit - Make (Last created unit) face (Last created unit) over 0.00 seconds
    • Unit - Make (Last created unit) face (Center of (Playable map area)) over 0.00 seconds
    • Unit - Make (Last created unit) face Default building facing (270.0) over 0.00 seconds

Which seem somewhat more logical to use. :p

Which is not so logical because down there in the actions quotes says: "This only works if the source unit is not moving at the time" :p:p
 

Romek

Super Moderator
Reaction score
964
The last one does exactly the same thing as the Jass action you're currently using.
That exact native. Not even a BJ. :p

Edit: No, nevermind.
Stupid of blizzard to leave that out though. =|
 

naughty

New Member
Reaction score
12
The last one does exactly the same thing as the Jass action you're currently using.
That exact native. Not even a BJ. :p

Edit: No, nevermind.
Stupid of blizzard to leave that out though. =|

It really works, really really stupid of blizzard indeed..
 

Romek

Super Moderator
Reaction score
964
I was just gonna PM you about that, Sevion. :p
Yes, EGUI it.

Blizzard either uses the Timed native, which interrupts orders.
Or they use the good one, but use SetUnitPosition just before it. =|
Fail.
 

Sevion

The DIY Ninja
Reaction score
413
Actually, Romy, I think it's SetUnitPos :)

I willz EGUI it! Look for it in the next update. (When I get to it >=O)
 
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