I'm able to register a lua callback via injection. After I log out of one character and onto another, the registered callback is now gone (I'm guessing because lua is reloaded during login).
My question is, do most people have an EndScene hook that calls lua_gettype on the registered callback name and check the return value for "nil" or "function" ? If not found, reregister?
I was hoping there would be a better function to hook than EndScene....so I'm not checking every frame. Maybe a method like "Lua engine is loaded" ?
Thanks!