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

Instantly Turn Unit spell??

Status
Not open for further replies.
Level 2
Joined
May 11, 2010
Messages
7
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?
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
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
 
Level 2
Joined
May 11, 2010
Messages
7
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.
Top