createTimer(500, function() writeInteger("SomeAddress2",XXXX) end
or if you insist:
Code:
local starttime=os.clock()
while os.clock()<starttime+0.5 do end
writeInteger("SomeAddres2",XXXX)
THATS GOLD! THANK YOU ERIC! Much appreciated . Pure gold . Couldnt find proper info in the 4th lua edition book but what i expect when i search for stuff that i havent reached yet but need to do... Thanks again
seems like i need to declare first starttime and then the os.clock() and then starttime is basically the "counter " + 0.5 = half a second and then execute.
i see now. will try some experimenting with os.clock then _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum