if testDps == nil then
testDps = timer.performWithDelay( 1000, testDmg, 0 )
testTimer = timer.performWithDelay( 4000, killTest, 1 )
if testDps == nil then
print( "wtf" )
testDps = timer.performWithDelay( 1000, testDmg, 0 )
end
end
the first time I run it, it works. it creates the testDps fine. but after 4 seconds when it kills it, and i retry. it doesnt create it anymore even through the double if testDps == nil . the kill function all is the following:
timer.cancel( testDps )
testDps = nil
what am i missing? thanks in advance [import]uid: 77199 topic_id: 32857 reply_id: 332857[/import]