Doom-Angel
Jass User (Just started using NewGen)
- Reaction score
- 167
JASS:
function Movement takes nothing returns boolean
local DATA data = TT_GetData()
local integer i = GetPlayerId(GetOwningPlayer(data.c))
if(DATA<i>.side == 1) then //Left
call SetUnitFacing(DATA<i>.c,GetUnitFacing(Car<i>.c) + 3)
elseif(Car<i>.side == 2) then //Right
call SetUnitFacing(DATA<i>.c,GetUnitFacing(Car<i>.c) - 3)
endif
return(DATA<i>.side == 0)
endfunction</i></i></i></i></i></i></i>
the struct:
does the local struct data leaks?
also tell me how to clean it if it does
thanks in advance