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

[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