Jump to content

setTimer (Again)!!


Lloyd Logan

Recommended Posts

Posted

What do you mean by using outputChatBox with setTimer? you mean send a chat message after X time? if so, then is easy:

setTimer ( outputChatBox, 5000, 1, "Hello World!" ) 

Posted
--setTimer(outputChatBox, time, how many times to repeat(use 0 for infinite), "And the string you want to output") 
--like this: 
setTimer(outputChatBox, 1000, 1, "String") 
--it outputs String on the chatBox after 1 sec 
  

Posted
What do you mean by using outputChatBox with setTimer? you mean send a chat message after X time? if so, then is easy:
setTimer ( outputChatBox, 5000, 1, "Hello World!" ) 

Jeez, :oops: I kept writing,

setTimer (5000, 1,outputChatBox("blah"), hitElement) 

Thank you.

Posted
You're welcome.

With setTimer is always like this:

setTimer ( function, time, repeats, arguments ) 

Ah, see this always confused me, so if I were to do setElementHealth(<---Random) would it be,

setTimer(setElementHealth, 5000, 1, 100) 

?

Thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...