Update¶
Callback ยท a function named Update that a script defines and the engine calls
Update is a global function that the engine calls every frame with the seconds since the last frame. It runs after the frame's physics steps, in server and client scripts.
Effects
- Declare
Updateas a global function before the script's first wait, such astask.waitorWaitFor; one declared later never runs. - An error ends that call only. 5 consecutive calls over the instruction or memory budget stop
Update; see engine errors.