Thomas Die Posted February 23, 2019 Share Posted February 23, 2019 (edited) right now i'n trying to replace a texture for a weapon, like a weapon that changes how it looks throughout durability ; does anyone know how to change an items texture , any help would be awesome thnx Edited February 23, 2019 by thomas4845 Link to comment Share on other sites More sharing options...
BakaSchwarz Posted February 26, 2019 Share Posted February 26, 2019 Is it only the looks? Or do you want to change abilities as well? In that case you may want to just create different prefabs for each "stage" of your weapon and swap them when needed. Anyways: Look at abigail_flower.lua as this is probably a perfect example of the thing you want to accomplish. As for detecting the change of durability/usages, you may want to look into the event "percentusedchange". You can just listen to it like so: inst:ListenForEvent("percentusedchange", function(inst, data) print(data.percent) end) Link to comment Share on other sites More sharing options...
Thomas Die Posted February 27, 2019 Author Share Posted February 27, 2019 thnx 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