Easiest way to make lua script wait/pause/sleep/block for a few seconds?

前端 未结 19 1425
礼貌的吻别
礼貌的吻别 2020-12-03 00:41

I cant figure out how to get lua to do any common timing tricks, such as

  • sleep - stop all action on thread

  • pause/wait - don\'t go on to the

19条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 01:16

    I believe for windows you may use: os.execute("ping 1.1.1.1 /n 1 /w as a simple timer. (remove the "<>" when inserting the time in milliseconds) (there is a space between the rest of the code and >nul)

提交回复
热议问题