T.s.e
Wish I was old and a little sentimental
- Reaction score
- 133
This is the code for testing H2I with DoNothing():
JASS:
function H2I takes handle h returns integer
return h
call DoNothing()
return 0
endfunction
function Trig_H2ITest_Actions takes nothing returns nothing
local unit u = CreateUnit(Player(0), 039;hfoo039;, 0,0,270)
call BJDebugMsg("H2I : " + I2S(H2I(u)))
call BJDebugMsg("GetHandleID : " + I2S(GetHandleId(u)))
set u= null
endfunction
//===========================================================================
function InitTrig_H2ITest takes nothing returns nothing
set gg_trg_H2ITest = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_H2ITest, 5 )
call TriggerAddAction( gg_trg_H2ITest, function Trig_H2ITest_Actions )
endfunction