Instantly Turn Unit spell??

Status
Not open for further replies.

protogenos

P

protogenos

Sorry to bother. I tried searching for an answer online, but it seemed others had the same problem making a unit instantly face a certain angle/facing by casting a spell.

It should be simple.. but it's not working. What happens the first time you click the spell the unit does not move. But the following times, it starts moving finely...
  • CounterClockwise
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Turn Counter-Clockwise
    • Actions
      • Set TempUni1 = (Triggering unit)
      • Set TempRe1 = (Facing of (Triggering unit))
      • Unit - Move TempUni1 instantly to (Position of TempUni1), facing (TempRe1 + 90.00) degrees
I even tried adding this action, but it does not work:
  • Unit - Move TempUni1 instantly to (Position of TempUni1), facing TempRe1 degrees
Any ideas?
 
So far there is no known way to make a unit face some point instantly, except making a bone face somewhere. This is only for the visual side though.
JASS:
native SetUnitLookAt takes unit whichUnit, string whichBone, unit lookAtTarget, real offsetX, real offsetY, real offsetZ returns nothing
 
Thanks! Well it doesn't have to be instantaneous, but less than 0.5 seconds.

And dang it; I don't know JASS. Guess I'll try to teach myself.
 
Status
Not open for further replies.
Back
Top