Code: Select all
function sys_enter_level(level)
local lev, px, py, pface = dsb_party_coords()
dsb_write({222, 222, 222}, lev)
end
When I go to level 1, it writes 0 again.
Returning to level 0, it writes 1.
I've tested this across multiple levels and it gets completely out of sync.
Why isn't dsb_party_coords() updating the current level correctly? Or am I doing something wrong?
(Also notice this when called in other functions, such as sys_game_load().)