- Joined
- Apr 19, 2011
- Messages
- 1,331
Hello, for move a unit without cancel any orders, i used the SetUnitXY JASS fonction, but i have a compilation error. I can't correct this error with my Jass knowledge, so i need oyur help :
Here are the trigger and the custom code script :
Here are the trigger and the custom code script :
JASS:
function SetUnitXY takes unit u, real x, real y returns nothing
call SetUnitX(u, x)
call SetUnitY(u, y)
endfunction
-
Starfall Loop
-

Evénements
-


Temps - Every 0.04 seconds of game time
-
-

Conditions
-

Actions
-


For each (Integer A) from SF_Index2 to SF_Index, do (Actions)
-



Boucle - Actions
-




Set SF_Point = (Position of SF_Caster[(Integer A)])
-




Set SF_CoorX = (X of SF_Point)
-




Set SF_CoorY = (Y of SF_Point)
-




Custom script: call SetUnitXY(udg_SF_Dummy[Integer A], udg_SF_CoorX, udg_SF_CoorY)
-




Custom script: call RemoveLocation( udg_SF_Point )
-
-
-
-






