So why isn't the unit turning? The periodic timer on slide is currently 0.01 (to make it reallly smooth) but if i change to 0.02 he turns a LITTLE bit if i spam-click. Here is triggers:
Code:
Slide
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set tempGroup = (Units of type Camper)
Unit Group - Pick every unit in tempGroup and do (Actions)
Loop - Actions
Set tempPoint = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at tempPoint) Equal to Ashenvale - Vines
Then - Actions
Set tempPoint1 = (tempPoint offset by 3.80 towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to tempPoint1
Custom script: call RemoveLocation(udg_tempPoint1)
Else - Actions
Custom script: call RemoveLocation(udg_tempPoint)
Custom script: call DestroyGroup(udg_tempGroup)
Code:
Turn
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Unit-type of (Ordered unit)) Equal to Camper
(Terrain type at (Position of (Triggering unit))) Not equal to Ashenvale - Vines
Actions
Set tempPoint = (Position of (Ordered unit))
Set tempPoint1 = (Target point of issued order)
Unit - Move (Ordered unit) instantly to tempPoint, facing tempPoint1
Custom script: call RemoveLocation(udg_tempPoint)
Custom script: call RemoveLocation(udg_tempPoint1)