Jump to content

Lua Guide: sleep


PublicHax

Recommended Posts

Description:
The function pauses the execution of the script. Returns "nil" if an error is encountered in the input parameters. If successful, returns the time-out specified by the "time" parameter.
  Attention:
The sleep function is not recommended for use in callback functions.
  Call format:
gg.sleep(any number from 1)
  Parameters:
Parameter   Type                           Description
    time = NUMBER = Time to suspend execution, in milliseconds
  Example:
gg.sleep(1000) = suspend script execution for one second

Link to comment
Share on other sites

29 minutes ago, PublicHax said:

Returns "nil" if an error is encountered in the input parameters. If successful, returns the time-out specified by the "time" parameter.

According to the GG API documentation, the function returns "nil" in all cases so regardless of passed argument being correct, it will still return "nil".

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.