- Joined
- Feb 5, 2011
- Messages
- 17
Hi guys, I've got a weird problem with making unit move specific distance.
I want him to march SMOOTHLY and EXACTLY into middle of nearby tile after pressing an arrow key. At the moment unit is moving too short.
There goes the trigger: (there are separate triggers for each arrow and player)
I want him to march SMOOTHLY and EXACTLY into middle of nearby tile after pressing an arrow key. At the moment unit is moving too short.
There goes the trigger: (there are separate triggers for each arrow and player)
-
Red Up
-

Events
-


Player - Player 1 (Red) Presses the Up Arrow key
-
-

Conditions
-

Actions
-


Set TempLoc1 = (Position of Footman 0000 <gen>)
-


Set TempLoc2 = (TempLoc1 offset by (0.00, 128.00))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Terrain type at TempLoc2) Not equal to Lordaeron Summer - Rock
-
-



Then - Actions
-




Trigger - Turn off Red Left <gen>
-




Trigger - Turn off Red Right <gen>
-




Trigger - Turn off Red Down <gen>
-




Trigger - Turn off Red Up <gen>
-




Unit - Order Footman 0000 <gen> to Move To TempLoc2
-




Wait (128.00 / (Current movement speed of Footman 0000 <gen>)) seconds
-




Game - Display to (All players) the text: (Debug Message: Distance to Circle of Power: + (String((Distance between (Position of Footman 0000 <gen>) and (Position of Circle of Power 0001 <gen>)))))
-




Trigger - Turn on Red Left <gen>
-




Trigger - Turn on Red Right <gen>
-




Trigger - Turn on Red Down <gen>
-




Trigger - Turn on Red Up <gen>
-
-



Else - Actions
-




Unit - Make Footman 0000 <gen> face 90.00 over 0.50 seconds
-
-
-


Custom script: call RemoveLocation(udg_TempLoc1)
-


Custom script: call RemoveLocation(udg_TempLoc2)
-
-







