- Joined
- Nov 3, 2006
- Messages
- 8,102
Alright guys, I used this system a long time ago, like more than 5 years ago, and I know there's been a ton of new stuff, anybody can tell me what's the most usable thing now?
graveyarded version can be fixed according to 3rd or 4th commentBonusMod is submitted on wc3.net, what is in the graveyard is not the actual version.
graveyarded version can be fixed according to 3rd or 4th comment
function SetUnitMaxLife takes unit u, real newLife returns nothing
local player p = GetOwningPlayer(u)
call SetUnitOwner(u, Player(14), false)
call SetPlayerHandicap(Player(14), GetUnitState(u, UNIT_STATE_MAX_LIFE) / newLife)
call SetUnitOwner(u, p, false)
call SetPlayerHandicap(Player(14), 1)
endfunction