- Joined
- Mar 23, 2007
- Messages
- 302
Hi, i did those 2 simple functions that moves a unit to the left(i guess)
just need to know if it is leakless and MUI.
in other Words just some critics or suggestions to improve it.
Thx for help
~Equal
just need to know if it is leakless and MUI.
in other Words just some critics or suggestions to improve it.
JASS:
function bla takes unit dingo , real r ,real a returns nothing
local unit U = dingo
local real angle = a
local real D = r
local real uY = GetWidgetY(U) + D * Cos(angle * bj_DEGTORAD)
local real uX = GetWidgetX(U) + D * Sin(angle * bj_DEGTORAD)
call SetUnitPosition (U,uX,uY)
set U = null
endfunction
function F1 takes nothing returns nothing
local unit U = GetTriggerUnit()
call bla(U,100,180)
set U = null
endfunction
Thx for help
~Equal