SilZong Posted October 2 Share Posted October 2 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. AddRecipe2( "name", {Ingredient("prefab", num)}, TECH, { atlas="image_atlas", image="image_name", 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 More sharing options...
_zwb Posted October 2 Share Posted October 2 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now