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

[JASS] SetUnitX and SetUnitY don't work

Status
Not open for further replies.
Level 12
Joined
Mar 23, 2008
Messages
942
I was using:

JASS:
SetUnitPosition(k.tsubaki, k.x, k.y)

And my spell worked, but since the unit keep reseting animation and look strange, I tried using setunitx and setunity... but the unit didn't moved at all! So I tough I did something wrong, put some debugmsg but the value was correct !?

JASS:
        call BJDebugMsg(R2S(k.x))
        call BJDebugMsg(R2S(k.y))
        call BJDebugMsg("----------")
        call SetUnitX(k.tsubaki, k.x)
        call SetUnitY(k.tsubaki, k.y)

So... If the value of k.x and k.y is correct, why the unit don't move there after all?
 
Does the unit have its own model?
If you are moving dummyies with attached effect, setunitx and setunity wont move the effect.
 
Status
Not open for further replies.
Back
Top