-
map init
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Custom script: set runner=gg_unit_Hmkg_0007
-
Custom script: set lastloc=GetUnitLoc(runner)
-
Custom script: call TimerStart(bs,.03125,true,function doesntwork)
-
-
Code:
function doesntwork takes nothing returns nothing
call DisplayTextToPlayer(Player(0),0,0,GetUnitName(runner))
set loco=PolarProjectionBJ(lastloc,10.,0.)
call SetUnitX(runner,GetLocationX(loco))
call SetUnitY(runner,GetLocationY(loco))
call RemoveLocation(lastloc)
set lastloc=loco
call RemoveLocation(loco)
endfunction
Name displayed, unit stuck at map center. so youre forced to create two locations each iteration of a charge trigger, or what? have fun running 18-24 p maps with >10 fps lol.