i just figured it out that i should use I2R before dividing and the argument was for a test and i forgot to remove....
thanks anyway for the answer +Rep
method M2P takes integer Min returns real
return 0.01 - (this.Min/50000)
endmethod
i tried to use the method above on struct array and for some reason it keeps returning 0.01 even though Min is changed....
is there anything i should know about the use of methods with struct array?
^ as far as for diversity i think it has a lot but you just don't see through your options,if you want, give me any type of symmetrical shape you want and i shall do it with my system.
as for the rest i shall update them with vJass and other additions
^ that's my point - when it ends i want it to start over with a different period (depending on the condition of course)
so using it like this is ok right?
if i use:
function TT_Action takes nothing returns boolean
//actions.....
if(Check()) then
call TT_Start(TT_Action,Data)
return true
endif
return false
endfunction
would it work without any lags or other types of errors?
>You want it to return a boolean when userFunc has stopped being executed, or return true if TT_Start(Ex) finished successfully?
i want it to return true when it's finished successfully
thanks for the explanation about the struct as integer
>Actions that you run must return boolean with this to be with.
im not talking about the UserFunc im talking about the start function
for example:
boolean b = TT_StartEx(UserFunc,struct,period)
and thanks for the rest
a few questions:
is it possible to make the function Start or StartEx return boolean or any other type to let know when it's finished?
is it possible to use it in a loop? (also explain me why not cause im not sure i relized how it works)
is it possible to change periodic from the UserFunc?
i...
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...