Add Lua Helpers

This commit is contained in:
D4rkl1ght3r
2025-05-14 18:25:56 +02:00
parent 00d25af93a
commit 835a30062f
4 changed files with 127 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Utils = {}
Utils["writeVariables"] = function()
filename = "lua.variables.log"
remove(filename)
local LogVars
LogVars = function(x, y)
local file = appendto(filename)
write(file, tostring(x).." ( "..tostring(y).." )\n")
flush(file)
closefile(file)
end
foreachvar(LogVars)
filename = nil
end