0 of 0

File information

Last updated

Original upload

Created by

Leksii

Uploaded by

Leksii

Virus scan

Safe to use

About this mod

Tool mod for UE4SS that allows to add new Enums to existed one.

Requirements
Permissions and credits
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!

Thanks to Herbata who needs help with new caliber for his mod, this mod was born because of you!

WARNING!
Mod requires installed UE4SS!




New Enum Adder for UE4SS Mod Tool

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_namesdo -- here change ipairs(NAME_OF_YOUR_NEW_ENUMS_NAMES_TABLE)
  AddNewEnum(ENumAsset,value,EnumTitle)  -- Add caliber each value
end

end)