This is not entirely true. A local variable declaration outside any of the lifecycle functions (init, update, final, on_message, on_input and on_reload) is available and shared among all script instances of that specific type. Here’s on overview of the different Lua scopes: Simple Lua question? Maybe? - #2 by britzl
1 Like