Lloyd Logan Posted January 18, 2013 Posted January 18, 2013 Hey, this has been annoying me, how do i use outputChatBox with setTimer ? its getting hopeless as I can only use setTimer with fIxVeh
Castillo Posted January 18, 2013 Posted January 18, 2013 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!" )
psydomin Posted January 18, 2013 Posted January 18, 2013 --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
Lloyd Logan Posted January 18, 2013 Author Posted January 18, 2013 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, I kept writing, setTimer (5000, 1,outputChatBox("blah"), hitElement) Thank you.
Castillo Posted January 18, 2013 Posted January 18, 2013 You're welcome. With setTimer is always like this: setTimer ( function, time, repeats, arguments )
Lloyd Logan Posted January 18, 2013 Author Posted January 18, 2013 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
Castillo Posted January 18, 2013 Posted January 18, 2013 Yes, but you would need to put the element before the "100".
Lloyd Logan Posted January 18, 2013 Author Posted January 18, 2013 Yes, but you would need to put the element before the "100". Ahh I understand now, Thank you!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now