• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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?
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
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.
Top