function BALL_MOVEMENT takes nothing returns nothing
local location point
set udg_real[999] = ( udg_real[999] + 0.2 )
set point = PolarProjectionBJ(GetUnitLoc(udg_Ball), 25 - udg_real[999], AngleBetweenPoints((udg_ReboundPoint), GetUnitLoc(udg_Ball)))
call SetUnitPositionLocFacingLocBJ( udg_Ball, point, (udg_ReboundPoint) )
call RemoveLocation( point )
endfunction
Name | Type | is_array | initial_value |
Ball | unit | No | |
GameOverText | texttag | No | |
integer | integer | Yes | |
real | real | Yes | |
ReboundPoint | location | No |