Script SetTimer

From CryWiki

Jump to: navigation, search

Script.SetTimer(number, function)

Description

Executes a function after a specified amount of time.

Arguments

  1. Time in milliseconds until the function executes
  2. Function to execute


Example

Lua (example)
Log("Executing now!");
Script.SetTimer(2000, function()
  Log("Delayed execution");
end);


See also

Script.SetTimerForFunction

Personal tools