Jump to content

[HELP]How to make InventoryItem Image gets shadow_FX just like Tophat_magician?

Recommended Posts

Hello guys!

I figured out how to rebuild shadow_FX like tophat_magician on my custom weapon and its image of recipe.

But I couldn't find any sample that explain how the shadow_FX works on inventoryitem image.

Does anyone who did research on it can tell me how it works?

I am deeply apprectiative of all your feedback.


This is how the shadow_FX works on the image of recipe.

    {Ingredient("prefab", num)},
    fxover={ bank="inventory_fx_shadow", build="inventory_fx_shadow", anim="idle" }

The way that works on swap_item can read the code of "function top_convert_to_magician(inst)" in hats.lua. 

Link to comment
Share on other sites

The shadow_FX is defined in widgets/itemtile.lua

To give your custom item the same effects, you could either modify ItemTile widget, such that it sets showequipshadowfx to true when the widget's item is your custom item. Or give your custom item "magiciantool" tag.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...