feat(ui): implement Script_SetCharacterSelectFacing

This commit is contained in:
fallenoak 2025-10-11 22:56:51 -05:00
parent 25378bf13b
commit 1d6b2693da
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -181,7 +181,14 @@ int32_t Script_GetCharacterSelectFacing(lua_State* L) {
} }
int32_t Script_SetCharacterSelectFacing(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) { int32_t Script_GetSelectBackgroundModel(lua_State* L) {