Jump to content

Recommended Posts

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 by Blackbando

@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 by Blueberrys

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...