• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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