Lua functions geared towards gamedev