Difference between revisions of "Lua Code Loops"

Jump to navigation Jump to search
22 bytes added ,  01:14, 21 November 2021
m
no edit summary
m
m
Line 1: Line 1:
[[Category:Lua Code]]
To make code loops in Lua that last more than one frame, you must redefine a function the game already calls every frame, and put the code in that. So far it is known that Tick() from Tick.lua and ProcessDebugKeys() from DebugKeys.lua will loop every frame, starting once the game finishes loading at startup.
To make code loops in Lua that last more than one frame, you must redefine a function the game already calls every frame, and put the code in that. So far it is known that Tick() from Tick.lua and ProcessDebugKeys() from DebugKeys.lua will loop every frame, starting once the game finishes loading at startup.


Navigation menu