diff --git a/autogen/lua_definitions/constants.lua b/autogen/lua_definitions/constants.lua index 0950df1e2..b1fd233f5 100644 --- a/autogen/lua_definitions/constants.lua +++ b/autogen/lua_definitions/constants.lua @@ -8191,6 +8191,9 @@ HOOK_MAX = 60 --- @type LuaHookedEventType --- | `HOOK_ON_PACKET_BYTESTRING_RECEIVE` --- | `HOOK_MAX` +--- @type integer +MAX_HOOKED_BEHAVIORS = 1024 + HUD_DISPLAY_LIVES = 0 --- @type HudDisplayValue HUD_DISPLAY_COINS = 1 --- @type HudDisplayValue HUD_DISPLAY_STARS = 2 --- @type HudDisplayValue diff --git a/autogen/lua_definitions/functions.lua b/autogen/lua_definitions/functions.lua index 700781429..29ab49c53 100644 --- a/autogen/lua_definitions/functions.lua +++ b/autogen/lua_definitions/functions.lua @@ -3030,7 +3030,7 @@ end --- @param name string --- @return BehaviorId ---- gets a behavior ID from a behavior name +--- Gets a behavior ID from a behavior name function get_id_from_behavior_name(name) -- ... end diff --git a/docs/lua/constants.md b/docs/lua/constants.md index 664556031..8f49768aa 100644 --- a/docs/lua/constants.md +++ b/docs/lua/constants.md @@ -3525,6 +3525,7 @@ | HOOK_ON_CLEAR_AREAS | 58 | | HOOK_ON_PACKET_BYTESTRING_RECEIVE | 59 | | HOOK_MAX | 60 | +- MAX_HOOKED_BEHAVIORS [:arrow_up_small:](#) diff --git a/docs/lua/functions-3.md b/docs/lua/functions-3.md index 4c256ee21..7b1704e71 100644 --- a/docs/lua/functions-3.md +++ b/docs/lua/functions-3.md @@ -261,7 +261,7 @@ Gets a behavior name from a behavior ID (bhvMyGreatMODCustom004) ## [get_id_from_behavior_name](#get_id_from_behavior_name) ### Description -gets a behavior ID from a behavior name +Gets a behavior ID from a behavior name ### Lua Example `local enumValue = get_id_from_behavior_name(name)` diff --git a/src/pc/lua/smlua_constants_autogen.c b/src/pc/lua/smlua_constants_autogen.c index 6936315ef..c7fde7802 100644 --- a/src/pc/lua/smlua_constants_autogen.c +++ b/src/pc/lua/smlua_constants_autogen.c @@ -3493,6 +3493,7 @@ char gSmluaConstants[] = "" "HOOK_ON_CLEAR_AREAS=58\n" "HOOK_ON_PACKET_BYTESTRING_RECEIVE=59\n" "HOOK_MAX=60\n" +"MAX_HOOKED_BEHAVIORS=1024\n" "HUD_DISPLAY_LIVES=0\n" "HUD_DISPLAY_COINS=1\n" "HUD_DISPLAY_STARS=2\n"