New Enum Adder for UE4SS Mod Tool
You last downloaded a file from this mod on 15 Dec 2024.
New Enum Adder for UE4SS Mod Tool – is a utility mod, that must have for modmakers, who want to add new types of something. In example – Ammo Caliber!
Mod requires installed UE4SS!
1. Extract AddNewEnumToS2 folder from Leksii_AddNewEnumToS2.zip into Mods/ folder of UE4SS.
2. Inside Mods/ folder find mods.txt file.
3. Open file and add new line:
AddNewEnumToS2 : 1
4. Open Mods/AddNewEnumToS2/scripts/main.lua
5. Change script to your modmaker’s needs:
Add new enum names:
— you can create new tables with your own elements
— change for your needs
local new_enum_names = {“HelloWorld1″,”HelloWorld2”}
Set enum name and table of new names:
— Calls when game thread starts (Especially after intro splashes it start working)
ExecuteInGameThread(function()
local EnumTitle = “EEffectType” — CHANGE ENUM NAME HERE, YOU CAN LOOK INTO Stalker2_enums.lua file
— Load asset Enumerator
local ENumAsset = LoadAsset(“/Script/Stalker2.”..EnumTitle)
— Iterate through new_enum_names table (can be set any table in ipairs())
for _, value in ipairs(new_enum_names) do — here change ipairs(NAME_OF_YOUR_NEW_ENUMS_NAMES_TABLE)
AddNewEnum(ENumAsset,value,EnumTitle) — Add caliber each value
end
end).