• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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