Blackbando Posted May 20, 2015 Share Posted May 20, 2015 (edited) So, I'm attempting at making a wizard-esque character, and want to make him have a Fire Staff, but different texture, name, not set things on fire and only do damage, and have infinite durability. I'm not too sure on 2 things. 1. How do I make the character spawn with the item? Last time I tried it with a hat (Different character that I deleted the files for after it failed, can't show what I did), the game crashed.2. How do I set durability for something to be infinite? Edited May 20, 2015 by Blackbando Link to comment https://forums.kleientertainment.com/forums/topic/54221-custom-item-with-infinite-durability-and-spawning-help/ Share on other sites More sharing options...
Blueberrys Posted May 20, 2015 Share Posted May 20, 2015 (edited) @Blackbando 1.local prefabs = { "prefab_name",}-- In the create fn, where inst is the player instanceinst.components.inventory:GuaranteeItems(prefabs)- 2. Just don't add the finiteuses component? I think that should suffice, considering you have it set up properly. Edited May 20, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/54221-custom-item-with-infinite-durability-and-spawning-help/#findComment-639264 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