How to make a function run ever 2 seconds

How can I make a function operate every two seconds…Is this even possible?

–Thanks [import]uid: 86879 topic_id: 16922 reply_id: 316922[/import]

Yes.

Use

[code]

timer.performWithDelay( 2000, function, 0 )

[/code] [import]uid: 10903 topic_id: 16922 reply_id: 63447[/import]

Awesome thanks! I thought I had tried that, but I think I for got the zero at the end [import]uid: 86879 topic_id: 16922 reply_id: 63460[/import]