Delay calling function||doc135437

September 20, 2022

Format

 Object:delayCall(func, time) 
  • The class to which the function belongs:Object

Description

Delay calling the function.


Parameters

Variable name type Description
func function call function
time int Delay time frame


Code Samples

on the client side of the objectmount script, delay the printout

this:delayCall(function()
     print("----------------  Hello  -------------------")
end, 20)