Does anyone know where I can download an LUA mod?
or any other scripting language.
I tried BriskVm but it crashes when I use lists.
or any other scripting language.
I tried BriskVm but it crashes when I use lists.
LuaState:Byte Ptr LuaState = luaL_newstate() luaL_openlibs(LuaState) lua_register(LuaState, "bmxCameraMove", LuaCameraMove) luaL_dostring("bmxCameraMove(100,200)") lua_close(LuaState) Function LuaCameraMove:Int(LuaState:Byte Ptr) Local x:Int = luaL_checkinteger(LuaState, 1) Local y:Int = luaL_checkinteger(LuaState, 2) TCamera.GetInstance().RemoveFocus() TCamera.GetInstance().SetPosition(x, y) Return 0 End Function
Import axe.lua Import axe.luascript Local LuaState:Byte Ptr LuaState = luaL_newstate() luaL_openlibs(LuaState) lua_register(LuaState, "bmxCameraMove", LuaCameraMove) luaL_dostring(luastate,"bmxCameraMove(100,200)") lua_close(LuaState) Function LuaCameraMove:Int(LuaState:Byte Ptr) Local x:Int = luaL_checkinteger(LuaState, 1) Local y:Int = luaL_checkinteger(LuaState, 2) Print "x "+x+" y "+y Return 0 End Function