I have used guides from this forum to learn JASS recently, and i have to say it is awesome because i understood everything!
Tho at the beggining we all know there will be some problems even newbiesh ones.
I have built a function called 'SetUnitMaxLife' which like it's name suppose to set unit max life for the newValue variable.
Now the function seems quit good to me but i doesn't work - used compiler (JassCraft) and no errors, the function is working but doesnt do what it was built to do, in fact it doesn't do anything :S
I know probably this is a stupid problem, but i still doesn't know the answer :S
Thank you for all the helpers. =]
Tho at the beggining we all know there will be some problems even newbiesh ones.
I have built a function called 'SetUnitMaxLife' which like it's name suppose to set unit max life for the newValue variable.
JASS:
function SetUnitMaxLife takes unit whichUnit, real newValue returns nothing
call SetUnitState(whichUnit, UNIT_STATE_MAX_LIFE, newValue)
endfunction
Now the function seems quit good to me but i doesn't work - used compiler (JassCraft) and no errors, the function is working but doesnt do what it was built to do, in fact it doesn't do anything :S
I know probably this is a stupid problem, but i still doesn't know the answer :S
Thank you for all the helpers. =]