Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Condiviso Veloce

Timer.SetTimeout

Executes a function, after waiting a specified number of milliseconds

Non ancora tradotto

Sintassi

Lua
Timer.SetTimeout(callback, milliseconds = 0, parameters... = nil)

Parametri

Nome Tipo Predefinito Descrizione
callback function The callback that will be executed
milliseconds facoltativo integer 0 The time in milliseconds to wait before executing the function
parameters... facoltativo any nil Additional parameters to pass to the function

Valore restituito

  • integer the timeout_id