feat(ui): implement Script_SetCharacterSelectFacing

This commit is contained in:
fallenoak committed 2025-10-11 22:56:51 -05:00
1 parent 25378bf13b
commit 1d6b2693da
1 file changed
+8 -1
+8 -1
View File
@@ -181,7 +181,14 @@ int32_t Script_GetCharacterSelectFacing(lua_State* L) {
}
int32_t Script_SetCharacterSelectFacing(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
if (!lua_isnumber(L, 1)) {
return luaL_error(L, "Usage: SetCharacterSelectFacing(degrees)");
}
float facing = lua_tonumber(L, 1) * 0.017453292;
CCharacterSelection::SetFacing(facing);
return 1;
}
int32_t Script_GetSelectBackgroundModel(lua_State* L) {