ossiejhmoore

OScript Sleep (leveraging Java)

Jul 18th, 2012
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.17 KB | None | 0 0
  1. function Sleep(Integer duration)
  2.  
  3.     Dynamic result = JavaObject.InvokeStaticMethod("java.lang.Thread","sleep", { duration })
  4.     if (IsError(result))
  5.         echo(result)
  6.     end
  7.  
  8. end
Advertisement
Add Comment
Please, Sign In to add comment