PublicHax Posted June 16, 2021 Share Posted June 16, 2021 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 More sharing options...
CmP Posted June 16, 2021 Share Posted June 16, 2021 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.