Jump to content

Character Perk Help


Recommended Posts

I am making a custom character. He has the ability to have infinite durability with all items(Maybe only all weapons/tools if that is easier to create), I was wondering if it was possible to give him a perk like that, and if so how would I go about creating it.

Edited by Mical
My friend gave me a different idea for character perks
Link to comment
Share on other sites

You would basically need to update the finiteuses component to achieve this. So you'll need a copy of the finiteuses file in the Components folder for DST. Inside that file you'll need to add in a special clause saying hey if this character is using this don't lose durability. You should be able to achieve that with a simple tag. 

inst:AddTag("example") -- This would add a special tag to your character.

Then you can use an if then statement inside of the finite component file

if inst:HasTag("example") then

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
 Share

×
  • Create New...