• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

ItemActionEntryWear.OnActivated()

w2lf

New member
Can someone explain how XUiC_ItemActionEntry is initialized or where from? I want to use ItemActionEntryWear.OnActivated() If I use it directly I keep getting null reference errors. Or any examples if someone has worked with ItemAction classes.

From what I understood 

XUiC_ItemActionList keeps the XUiC_ItemActionEntry which keeps the BaseItemActionEntry which has the ItemActionEntryWear

I have a custom equip slots and I want to use the wear function which is ItemActionEntryWear.OnActivated()

The windowAction something is inside the Inspect window when you select an Item which has the wear active.
 
Last edited by a moderator:
Nevermind figured it out. ItemController was null.
 


Code:
 ItemActionEntryWear itemActionEntryWear = new ItemActionEntryWear(xUiC_ItemStack);
 itemActionEntryWear.ItemController = xUiC_ItemStack;
 itemActionEntryWear.OnActivated();

 
Back
Top