- Joined
- Mar 23, 2008
- Messages
- 942
I was using:
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 !?
So... If the value of k.x and k.y is correct, why the unit don't move there after all?
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?