- Joined
- Aug 21, 2008
- Messages
- 533
JASS:
function Trig_test_Func001A takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hfoo', Player(6), udg_startpoint[GetConvertedPlayerId(GetEnumPlayer())], bj_UNIT_FACING )
call SetUnitMaxLife(GetLastCreatedUnit(),udg_maxlife[GetOwningPlayer(GetLasCreatedUnit())]
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", GetRectCenter(udg_rect[GetConvertedPlayerId(GetEnumPlayer())]) )
endfunction
function Trig_test_Actions takes nothing returns nothing
call ForForce( udg_activaded_players, function Trig_test_Func001A )
endfunction
//===========================================================================
function InitTrig_test takes nothing returns nothing
set gg_trg_test = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_test, 1.00 )
call TriggerAddAction( gg_trg_test, function Trig_test_Actions )
endfunction
Since i used the SetUnitMaxLife the hole thing isnt working anymore... Someone know way?