Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
that means absolutely nothing
Events

Time - Every 0.03 seconds
Actions

Unit - Make 'Unit' face 'Whatever' in 0.00 seconds

Set tempPoint = ((Position of 'Unit') offset by 20 towards ( 'facing of 'Unit' - 180°))

Unit - Move 'Unit' intantly to 'tempPoint'

Custom script: call SetUnitAnimationByIndex(udg_'Unit', 'Index of Walking Animation')

Custom script: call RemoveLocation(udg_tempPoint)
Keep in mind that if you don't want any leaks you must use two variables for points if you are using polar offsets. For example,
Then, of course, you must remove the locations with
Set tempPoint1 = (Position of Unit)
Set tempPoint2 = tempPoint1 offset by 20.00 towards (Facing of Unit - 180.00)
Custom script: call RemoveLocation( udg_tempPoint1 )
Custom script: call RemoveLocation( udg_tempPoint2 )
Custom script : call SetUnitX(myUnit, GetUnitX(myUnit) + speed * Cos(GetUnitFacing(myUnit) * bj_DEGTORAD + bj_PI))
Custom script : call SetUnitY(myUnit, GetUnitY(myUnit) + speed * Sin(GetUnitFacing(myUnit) * bj_DEGTORAD + bj_PI))
Custom script: call SetUnitTimeScale(myUnit, -1.00)
Custom script: call SetUnitTimeScale(myUnit, 1.00)
